Skip to content

Edit-popup disappears and then freeze the column when edit choices have some special characters #25

@vituri

Description

@vituri

Hi!

In the following example, when I double-click in any cell of the column 'Species' the editing-popup that should appear is invisible. I can check that the popup is there because I can click on the options (even though I don't see them). After some clicks, I press Enter and the value is saved on the table. After that, you can't use the same trick to close the popup, because the entire column appears to "freeze".

library(toastui)
library(shiny)

ui <- fluidPage(
  datagridOutput("grid")
)

server <- function(input, output, session) {

  editgrid <-
    datagrid(iris) %>%
    grid_editor(
      column = "Species",
      type = "checkbox",
      choices = c('Option 1', 'Option.2', 'Option_3', 'Óptión_4', 'Option_5?')
    )

  output$grid <- renderDatagrid({
    editgrid
  })

}

shinyApp(ui, server)

If, however, we change the choices to

choices = c('Option_1', 'Option_2', 'Option_3', 'Óptión_4')

then all works fine. So I guess it is some problem when rendering or converting the character vector to JS.

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