I'm trying to create a shinyapp to view and maintain data to be used in risk analysis.
The code below creates a shinydashboard with two tabs, each containing a tabBox with one panel rendering a visNetwork graph.
I want to create an arbitrary number of tabs, so I use variants of do.call and purrr::map to create both ui and server-elements.
In the graph, I use visOption(manipulation = TRUE) in order to update information in the database based on user input (in the code below i skip the writing-to-database part).
My problem is that the pop-up for Add Node appears in the first tab (PO1 - Name 1) even if I've selected the second (PO2 - Name 2), and started my manipulation there.
It is possible to start the manipulation in the second tab/graph, move to the first tab to define columns in the pop-up, and move back to the second graph to see the change. Not very user-friendly though...
Edit: simplified the reprex.
I'm trying to create a shinyapp to view and maintain data to be used in risk analysis.
The code below creates a shinydashboard with two tabs, each containing a tabBox with one panel rendering a visNetwork graph.
I want to create an arbitrary number of tabs, so I use variants of do.call and purrr::map to create both ui and server-elements.
In the graph, I use visOption(manipulation = TRUE) in order to update information in the database based on user input (in the code below i skip the writing-to-database part).
My problem is that the pop-up for Add Node appears in the first tab (PO1 - Name 1) even if I've selected the second (PO2 - Name 2), and started my manipulation there.
It is possible to start the manipulation in the second tab/graph, move to the first tab to define columns in the pop-up, and move back to the second graph to see the change. Not very user-friendly though...
reprex:
Also, the result of sessionInfo():