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

Added rows repeat row name if initial data has only one row #436

Open
jswanson436 opened this issue Jan 26, 2024 · 0 comments
Open

Added rows repeat row name if initial data has only one row #436

jswanson436 opened this issue Jan 26, 2024 · 0 comments

Comments

@jswanson436
Copy link

If I create an rhandsontable initially with only one row and then add rows using the right-click functionality they all get labeled '1', like so:

image

Interestingly, if I provide initial data with multiple rows, then remove all but one using the interactive functionality, and then add some more, it works fine. Here's a simple Shiny app that reproduces the issue:

library(shiny)
library(rhandsontable)

ui <- fluidPage(
  rHandsontableOutput("test_hot")
)

server <- function(input, output, session) {
  output$test_hot <- renderRHandsontable({
    df <- data.frame(id = 1, val = 2)
    rhandsontable(df)
  })
}

shinyApp(ui, server)
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