Skip to content
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

renderValue needs to empty element before rendering a new one #65

Open
hollywoof opened this issue Jun 5, 2020 · 0 comments
Open

renderValue needs to empty element before rendering a new one #65

hollywoof opened this issue Jun 5, 2020 · 0 comments

Comments

@hollywoof
Copy link
Contributor

If you render a RagGrid from a reactive expression then the RagGrid renders multiple times.

The HTML element needs clearing inside renderValue

See what DT does on: https://github.com/rstudio/DT/blob/cd8e49fa69ddb786974fb661c275b780adcbebf9/inst/htmlwidgets/datatables.js#L117

See also a question/answer on https://stackoverflow.com/questions/44348963/replace-existing-r-shiny-htmlwidget-data-with-new-data

hollywoof added a commit to hollywoof/RagGrid that referenced this issue Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant