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

Fix selectize.js tab focusing #224

Merged
merged 2 commits into from
Sep 11, 2023
Merged

Fix selectize.js tab focusing #224

merged 2 commits into from
Sep 11, 2023

Conversation

cpsievert
Copy link
Contributor

Fixes the following errors https://rstudio.github.io/shinycoreci/results/2023/09/11/#313-bslib-card-tab-focus-macOS-4.3, which were introduced by rstudio/shiny#3875

With the upgrade of selectize.js, when a multiple select is focused (and hence it's dropdown is shown), pressing Tab will add items instead of moving onto the next input. I'm not sure if this should be considered a regression in behavior that requires fixing, but regardless, it doesn't seem harmful to Escape to close the dropdown before moving to the next input.

Note that the same is now done of the dateRangeInput() (Escape+Tab should ensure the dropdown closes before moving to the next focusable item)

…scaping out of selectize.js dropdown to move onto next input
@cpsievert
Copy link
Contributor Author

Reviewed this in person with @gadenbuie

@cpsievert cpsievert merged commit a8fa03b into main Sep 11, 2023
16 of 20 checks passed
@cpsievert cpsievert deleted the fix-313-bslib-card-tab-focus branch September 11, 2023 18:29
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

Successfully merging this pull request may close these issues.

1 participant