Skip to content

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

@hollywoof

Description

@hollywoof

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions