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

Change focus behavior on click #313

Merged
merged 4 commits into from
Feb 22, 2023
Merged

Conversation

corymharper
Copy link
Contributor

@corymharper corymharper commented Feb 22, 2023

This pull request basically inverts the previous default hook behavior on click, making it so it must be specified using the new focusFirstItemOnClick option. The new default behavior matches the behavior that used to be enabled by passing the disableFocusFirstItemOnClick option, so that option has been removed. I bumped the major version because anyone using that previously existing option would have their code broken by this change, and it also breaks the previously established behavior on click.

It should be noted that in the past we thought the default behavior should be the opposite based on the wording of the authoring practices at that time. Since then that version of the authoring practices has been deprecated. In the most recent applicable documentation no behavior is dictated for pointer based interaction. Therefore we can revert to the approach we previously treated as the default while maintaining the option to invert the behavior.

Co-authored-by: Wes Cossick <WesCossick@users.noreply.github.com>
@WesCossick WesCossick merged commit af74c87 into master Feb 22, 2023
@WesCossick WesCossick deleted the chang-focus-behavior-on-click branch February 22, 2023 22:32
@corymharper corymharper mentioned this pull request Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants