-
Notifications
You must be signed in to change notification settings - Fork 4
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
jsTree not updating when using uiOutput()
#15
Comments
Don't use observeEvent(
input$node_select,
nodes(if(input$node_select == "n1") nodes1 else nodes2)
) and the second child will appear as expected. I'm working on the other issue. |
Not sure why but it works if you comment a line: output$dirtree2_ui <- renderUI({
tagList(
#h2(paste("You have selected", input$node_select)),
jstreeOutput("dirtree2")
)
}) |
If you comment that line it won't re-render when |
No, it works, because there is |
Try this
It removes the |
But don't do this, this is the cause of the problem. |
When |
Maybe this example using
|
I agree it's strange but that's the way it works. My code for the updating is the same as the one of Another solution is to remove |
Here is a minimal example of the behavior. If the jstree output is created using
renderUI()
in the server, the updating of the tree does not work as expected. (Sidenote: I do not know why the second Root folder is not showing in my example either.)The text was updated successfully, but these errors were encountered: