Comments (3)
I've found the reason @gadenbuie - see https://stackoverflow.com/a/77993889/1100107. That's the jsTreeGrid plugin which copies the classes of the tree to the grid.
So I changed the regex to /(^shiny|^jstree(r|-|$))/
in jstreegrid.js, to prevent the classes shiny-bound-output
and jstreer
to be copied, and the problem has gone.
from shiny.
What's interesting is that I see two .shiny-bound-output
objects -- or even two htmlwidgets in this example:
document.querySelectorAll(".shiny-bound-output")
// NodeList(2) [...]
document.querySelectorAll(".shiny-bound-output").forEach(el => console.log(`${el.tagName}${el.id ? "#" : ""}${el.id}.${[...el.classList].join('.')}`))
// DIV.jstree-grid-wrapper.jstreer.html-widget.html-widget-output.shiny-report-size.html-fill-item.shiny-bound-output
// DIV#jstree.jstreer.html-widget.html-widget-output.shiny-report-size.html-fill-item.shiny-bound-output.jstree.jstree-1.jstree-grid-cell.jstree-default
The element with #jstree
does have the correct binding; it's the .jstree-grid-wrapper
that's throwing the error:
$("#jstree").data("shiny-output-binding")
// OutputBindingAdapter2 {el: div#jstree.jstreer.html-widget.html-widget-output.shiny-report-size.html-fill-item.shiny-bound-outp…, binding: OutputBinding2, onResize: ƒ}
$(".jstree-grid-wrapper").data("shiny-output-binding")
// undefined
My first instinct is to look into the jstree initialization code. Maybe you're cloning or re-using an initial element and retaining some classes on the copy that aren't needed?
from shiny.
@gadenbuie thanks for the hints!
To me the jstree initialization code looks just like the boilerplate.
The class shiny-bound-output
seems to be added here, however, so far I don't understand how or where the jstree-grid-wrapper
element is enlisted or chosen for binding. I'll keep digging.
from shiny.
Related Issues (20)
- Client error console issue with dynamic bslib accordions
- Should check for overlapping input and output binding IDs, and only enable error console in local development
- Unnesting an reactive Value to GGplot breaks HOT 1
- reactives running and trigger observers without open the tab
- Shiny is not releasing memory HOT 2
- Can't Open Chrome Driver in shinyapps.io
- Load plot upon launching Shiny app HOT 1
- shiny.autoreload does not work when runApp is given shinyApp result or a list HOT 1
- selectInput not working anymore within renderDataTable in 1.8.0 HOT 2
- Reactive selectizeInput box fail to update correctly in Shiny 1.8.0, first value of previous allowed choices are kept HOT 2
- Update jQuery version to 3.7.1
- 'make' not found HOT 3
- Use req() in checkFunction ReactivePoll HOT 5
- v1.8.0: Unable to highlight multiple selected values at once in selectInput/selectizeInput HOT 1
- How to use `Shiny.bindAll` for a DT table? HOT 8
- Why updateDateInput() nor dateRangeInput() don't have the datesdisabled parameter enabled? HOT 1
- Shiny server not supporting http range requests. This disables seekbars for locally (www folder) hosted media files. HOT 2
- `accordion_insert_panel` on restored bookmarks does not work with a module HOT 3
- Nginx configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shiny.