Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix renderText bug for h3 elements #250
Conversation
…etach() Sidebar, h1 titles, h2 -> h3, h3 -> li, chart title, headings, blockquotes, valueBox, captions. Use `append(x)` instead of `html(x)`. `html(x)` does not respect existing element information. Use `contents()` over `html()`. `contents()` will return full elements with data objects intact, `html()` returns a string.
|
Changed approach to use and jquery links: By not serializing to strings, the shiny data objects can be kept intact. The order of execution had changed once shiny moved up to jquery v3 in shiny v1.4.0. These changes are only necessary to maintain the existing shiny data objects hidden in the DOM elements. Any occurrence of Changes:
Jster testing document for github.com/rstudio/shinycoreci-apps testing...
|
inst/rmarkdown/templates/flex_dashboard/resources/flexdashboard.js
Outdated
Show resolved
Hide resolved
inst/rmarkdown/templates/flex_dashboard/resources/flexdashboard.js
Outdated
Show resolved
Hide resolved
* fix comment * remove, do not detach old elements * chartValue is text and should be added as text
Fixes #245
There was a timing issue with how shiny initialized. Because titles were shuffled around, shiny said it looked like ashiny-bound-outputclass object, but it didn't have the proper information.$(document).ready()is not needed as the JS is sourced at end of body and the Flexdashboard code is sourced at the beginning of the body. So thesetTimeoutcan be dropped from acf013dHave tried on Shiny 1.4+ and Shiny 1.3.2. (The issue was created when jQuery was bumped to v3. See #245 (comment))