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

BREAKING: remove "tabIndex" assigned to handle by default #212

Conversation

fealkhou
Copy link
Contributor

@fealkhou fealkhou commented Aug 12, 2024

Breaking change

This is a breaking change, so if you got here after debugging an issue with focus on the handle and just want to fix your issue quickly, just know that you should now pass tabIndex={0} to your handle element to make it focusable.

More context

This change removes the default tabIndex=0 attribute from the set that is being passed to the handle after an update.

This means that by default the handle will not be set focusable and you have to manually add tabIndex={0} prop to your handle element.

This change was introduced after the conclusion internally that maybe not every use case requires the handle to be focusable right away and this feature should be controlled from the user, which was not possible before. Since this is still major version 0 and pretty much still in active development, any API changes like this should be expected.

@fealkhou fealkhou force-pushed the users/fealkhou/react-resize-handle/fix-tab-index branch 3 times, most recently from 542c3ed to c0ae713 Compare August 13, 2024 17:49
@fealkhou
Copy link
Contributor Author

fealkhou commented Aug 13, 2024

@microsoft-github-policy-service agree

@layershifter layershifter requested a review from george-cz August 13, 2024 17:55
@fealkhou fealkhou force-pushed the users/fealkhou/react-resize-handle/fix-tab-index branch from 0ab6219 to 3f26672 Compare August 15, 2024 00:42
@fealkhou fealkhou force-pushed the users/fealkhou/react-resize-handle/fix-tab-index branch from ca60ddc to 31a551a Compare August 15, 2024 13:51
@layershifter layershifter changed the title Users/fealkhou/react resize handle/fix tab index chore: remove "tabIndex" assigned to handle by default Aug 16, 2024
@layershifter layershifter changed the title chore: remove "tabIndex" assigned to handle by default BREAKING: remove "tabIndex" assigned to handle by default Aug 16, 2024
@george-cz george-cz merged commit 0cbac9c into microsoft:main Aug 16, 2024
3 checks passed
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.

3 participants