-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsTreeR disables reactive callbacks from bslib nav containers #33
Comments
You're definitely a bug finder! But again, this is not related to the |
I identified (but not solved) the problem. The |
Thanks for the response. Can you elaborate on what you mean by removing I would respectfully disagree with the statement that the problem at hand is not related to |
It does not disappear, on the contrary, it persists! Simply comment one line: jsTreeR_ui<-card(
# jstreeOutput('jstree_tree_ui'),
verbatimTextOutput(outputId='selected_navset_ui'),
bslib::navset_pill_list(
id='navset_ui',
nav_panel(title="A",value="A"),
nav_panel(title="B",value="B"))
) and you will see the problem is still there.
It is related to |
Thanks for your comment. Meanwhile, with the only change being the removal of Code snippet:
|
This problem may be related to issue: #32 (comment)
After switching from shinyTree to jsTreeR, the callbacks from
bslib::navset_pill_list
appears to be broken when rendered throughrenderUI
. The desirable behavior is that whenever the user activates a certainnav_panel
in thenavset_pill_list
container, thevalue
thenav_panel
should be accessible through theinput$id_of_navset_pill_list_container
. However, whenjsTreeR
is used withrenderUI
, theinput$id_of_navset_pill_list_container
is never updated when the user activates certain panels, and remains at the initialized value ofNULL
at all times.2 Reprex's are made with
shinyTree
andjsTreeR
Firstly, the reprex with shinyTree showing desirable reactive behaviour:
Now the reprex with jsTreeR, where the
input$navset_ui
fails to update on change:The reprex's differ only by which wrapper is used to interface with
jsTree
(shinyTree
vsjsTreeR
).The text was updated successfully, but these errors were encountered: