-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add blur on active element when page is changed #4
Comments
Be careful to this issue defunkt/jquery-pjax#377 |
@MoOx Isn't this covered by this line and this line? I don't know why both are needed, but regardless, the focus should be lost.
This should be a simple fix, similar to what was ultimately implemented here. |
You pointed the same line, but I guess you are right. Maybe I was referring to event triggered by js (eg: tooltip opened on a tap/click that should be hidden when tapping outside), can't remember... |
Previously, Pjax would blur (remove focus) from the active element regardless of where it was on the page. This restricts that to happen only if the active element is contained by one of the elements represented by options.selectors, because only those are affected by Pjax. Fixes #4
Fix element blurring (removing focus). Closes #4.
To remove focus on a clicked/tapped link (eg on ipad, a attached tooltip can remain visible after the new page load, which is weird)
The text was updated successfully, but these errors were encountered: