Skip to content

Commit

Permalink
Fix selectize.js tab focusing (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert authored Sep 11, 2023
1 parent 93c5c08 commit a8fa03b
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,22 +256,17 @@ test_that("fullscreen interior card with inputs (forward tab cycle)", {
expect_focus(app, "#letter-selectized")
key_press("Tab")
expect_focus(app, "#letter2-selectized")
key_press("Escape")
key_press("Tab")
expect_focus(app, "#dates input:first-child")
key_press("Tab")
expect_focus(app, "#dates input:last-child")
key_press("Escape")
key_press("Tab")
expect_focus(app, ".bslib-full-screen-exit")
key_press("Tab")
expect_focus(app, "#letter-selectized")

# Go back to date input to ensure popup is closed
# FIXME: We should fix this in {bslib} (tab handlers too aggressive)
key_press("Tab")
key_press("Tab")
key_press("Tab")
key_press("Escape")
expect_focus(app, "#dates input:last-child")
expect_card_full_screen(app, "card-with-inputs-left")

app_card_full_screen_exit(app, "click overlay")
Expand Down

0 comments on commit a8fa03b

Please sign in to comment.