-
Notifications
You must be signed in to change notification settings - Fork 14
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
Focus url bar #13
Comments
It's a long story, and some people thinks this behaviour is right(you, bootstap), while some are not(modal specs). <div>
<div :tabIndex="disabled ? -1 : 0" :style="hidden"></div>
<div :tabIndex="disabled ? -1 : 1" :style="hidden"></div>
<div @focusout="onBlur" data-lock>
<slot></slot>
</div>
<div :tabIndex="disabled ? -1 : 0" :style="hidden"></div>
// ^^^ conditionally remove the last guard.
</div> That would allow moving focus to the browser navigation if your modal is the last element on the page. That's the requirement, or it would move to the next focusable element. Plus add one more condition to I am not quite sure I would be apply to create a PR soon, and would be very thankful you will try to implement these two changes. |
Hi,
firstly, thanks for this nice package, it works great.
But now to my question:
Is there any option to make the focus-lock leave the DOM and jump to the URL bar and then back, like the default browser behaviour?
I was thinking something like:
<FocusLock :allowEscapeToURLBar="true">
Currently it does:
But the default browser (Chrome) behaviour is:
It would be nice to have something like this to set.
The text was updated successfully, but these errors were encountered: