The methods focus() and blur() should be applied to all elements #543

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@juhovh
Contributor

juhovh commented Jul 6, 2012

Consider the case $('input').blur() where $('input') returns two elements and the second one is selected. The current code only blurs the first one and the second one stays selected. Works OK in jQuery but fails in Zepto.

@mislav mislav closed this in 85c8a84 Sep 29, 2012

lopper added a commit to buddydvd/zepto that referenced this pull request Apr 24, 2013

apply focus() and blur() to all elements in collection
This ensures that a focused element gets blurred even if it's not the
first element in the collection.

Closes #543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment