Add blur on active element when page is changed #4

Closed
opened 2014-04-22 00:01:12 -05:00 by MoOx · 4 comments
MoOx commented 2014-04-22 00:01:12 -05:00 (Migrated from github.com)

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)

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)
MoOx commented 2014-04-23 08:26:54 -05:00 (Migrated from github.com)
Be careful to this issue https://github.com/defunkt/jquery-pjax/issues/377
BehindTheMath commented 2018-01-23 23:55:18 -05:00 (Migrated from github.com)

Add blur on active element when page is changed
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)

@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.

Be careful to this issue defunkt/jquery-pjax#377

This should be a simple fix, similar to what was ultimately implemented here.

>Add blur on active element when page is changed >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) @MoOx Isn't this covered by [this line](https://github.com/MoOx/pjax/blob/3c8cd087c5352b92fb7f1090b0c39b29cfa7a31a/index.js#L132) and [this line](https://github.com/MoOx/pjax/blob/3c8cd087c5352b92fb7f1090b0c39b29cfa7a31a/index.js#L132)? I don't know why both are needed, but regardless, the focus should be lost. >Be careful to this issue defunkt/jquery-pjax#377 This should be a simple fix, similar to what was ultimately implemented [here](https://github.com/defunkt/jquery-pjax/pull/545).
MoOx commented 2018-01-24 03:26:18 -05:00 (Migrated from github.com)

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...

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...
BehindTheMath commented 2018-01-24 08:45:14 -05:00 (Migrated from github.com)

Sorry. I meant this line and this line.

Sorry. I meant [this line](https://github.com/MoOx/pjax/blob/3c8cd087c5352b92fb7f1090b0c39b29cfa7a31a/index.js#L132) and [this line](https://github.com/MoOx/pjax/blob/3c8cd087c5352b92fb7f1090b0c39b29cfa7a31a/index.js#177).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#4