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

add element.blur() #120

Closed
rodneyrehm opened this issue Mar 13, 2016 · 1 comment
Closed

add element.blur() #120

rodneyrehm opened this issue Mar 13, 2016 · 1 comment

Comments

@rodneyrehm
Copy link
Member

Extracted from #81.

We need a utility to safely remove focus from an element.

  • The utility should have an option to pass focus to the next focsuable ancestor (rather than always passing focus to body).
  • We should guard from windows losing focus in IE9 as $.ui.safeBlur() does.
  • The utility should accept an option that controls the behavior if the element to blur does not have focus.

Have a look at the focus fixup rules before implementing anything.

@rodneyrehm rodneyrehm added this to the 1.2.0 - jQuery UI milestone Mar 13, 2016
@rodneyrehm
Copy link
Member Author

I've decided against featuritis. passing focus to another element should be done by focusing the other element explicitly. So this utility effectively becomes a guard against missing .blur() method on SVG and IE9's window-blur-problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant