Open datatenk opened 2 months ago
Hello,
Thanks for the report. That is very strange. This is not due to the jsTreeR
contained in the renderUI
: if you remove it, you get the same strange behavior. I inspected the HTML code and I observed that the code for the button groups is different. In the first tab, there are only input type="radio"
elements, while in the second tab, there are some button
elements in addition. I have really no idea where are they from.
If by "removing jsTreeR" could restore the radioGroupButtons to its original rendering, that has been tried and shown in my Reprex in which I used renderUI
with shinyTree
to achieve the correct rendering of radioGroupButton
. However, it highlights the points that once renderUI
is paired with jsTree
, the radioGroupButton
rendering breaks. There are actually 2 separately formed shinyApps
in my reprex, one for each wrapper. The only difference between the 2 apps in my reprex is which jsTree wrapper is being used, shinyTree
vs jsTreeR
.
After switching from shinyTree to jsTreeR, all other htmlwidgets appear to have their styling set to those of jsTree when they are rendered through
renderUI
.As exemplified below, a
shinyWidgets::radioGroupButtons
element is used:1) when using shinyTree, the following rendering is obtained (desirable):![Screenshot 2024-05-05 215821](https://github.com/stla/jsTreeR/assets/34408009/cc41d8aa-f4e0-4e08-b0ca-d9b518dd74ea)
2) after switching to jsTreeR, the following rendering is obtained (undesirable):![Screenshot 2024-05-05 215745](https://github.com/stla/jsTreeR/assets/34408009/7b5f477c-63ab-414c-8f8b-11982b0afcf0)
Below is a reprex, firstly using
shinyTree
, where the renderings are good in both "shinyTree" and "shinyTree uiOutput" tabs:Same example, now using
jsTreeR
instead ofshinyTree
; notice the problem in the "jsTreeR uiOutput" tab: