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

feat(Deloser): Preventable events to control Deloser, manual focus restoration Deloser strategy. #361

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

mshoho
Copy link
Member

@mshoho mshoho commented Feb 26, 2024

Deloser now dispatches TabsterMoveFocusEvent before restoring the focus. It is possible for application to preventDefault() this event.

Adding strategy prop to Deloser with new Manual value. Manual delosers won't restore focus automatically, but they still follow the focus history.

It is possible for the application to dispatch DeloserRestoreFocusEvent to force the Deloser to restore focus.

@mshoho mshoho requested a review from ling1726 February 27, 2024 12:52
@mshoho mshoho merged commit 309659b into master Feb 28, 2024
2 checks passed
@mshoho mshoho deleted the deloser-events branch February 28, 2024 18:27
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.

None yet

2 participants