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

Moving with Tab between Inputs doesn't work #64

Closed
malte610 opened this issue Jan 12, 2022 · 3 comments
Closed

Moving with Tab between Inputs doesn't work #64

malte610 opened this issue Jan 12, 2022 · 3 comments

Comments

@malte610
Copy link

There is bug in SweetAlert that doesn't allow to move between Inputs with the tab button. I found the following two issues, but I lack knowledge in JavaScript to implement the proposed fixes properly.

SweetAlert Issue 127
SweetAlert Issue 391

In Issue 127 it is suggested that changing "closeOnConfirm" to true solves the issue but that didn't work for me.

Reprex:

library(shinyalert)

ui <- fluidPage(
  fluidRow(
    useShinyalert(),
    actionButton("btn", "test")
  )  
)

server <- function(input, output) {
  observeEvent(input$btn, {
    shinyalert(html = TRUE,
               text = tagList(
      textInput("name", "What's your name?", "Dean"),
      numericInput("age", "How old are you?", 30),
    ))
  })
}

shinyApp(ui = ui, server = server)
@daattali
Copy link
Owner

Thanks for the report. Unfortunately, any bug present in sweetalert is going to be present here as well. It's not clear to me whether this is easily fixed and how to fix it.

@lisiarend
Copy link

This is still a problem that would be good to be considered...

@daattali
Copy link
Owner

Please see my previous reply. I cannot fix this, the developers of sweetalert knew about this bug for 8 years and haven't fixed it, I can't do it on my end.

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

3 participants