Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngTouch): don't blur form elements #11212

Closed
wants to merge 1 commit into from

Conversation

mikec
Copy link
Contributor

@mikec mikec commented Feb 28, 2015

Form element focus should not be prevented by ng-click.
The issue was introduced by #2989, and happens on mobile browsers that support touch events.
Plunker to demonstrate the issue: http://embed.plnkr.co/CxeuWocoPE70vzrevrIi

Closes #4030, #6432

Review on Reviewable

@OlenDavis
Copy link
Contributor

Might this be included in the 1.4.1 milestone rather than the amorphous 1.4.x milestone? Pretty please?

@christianvuerings
Copy link
Contributor

@mikec looks like there are some merge conflicts - would you able to rebase?

Form element focus should not be prevented by ng-click.
The issue was introduced by angular#2989, and happens on mobile browsers that support touch events.
Plunker to demonstrate the issue: http://embed.plnkr.co/CxeuWocoPE70vzrevrIi

Closes angular#4030, angular#6432
@mikec
Copy link
Contributor Author

mikec commented Jun 29, 2015

@ChristianV: rebased

@christianvuerings
Copy link
Contributor

@petebacondarwin would you mind doing a review? Currently we have to load a modified version of the directive with every release until it's fixed.

@bruteforce
Copy link

The bug was with NgTouch in my case.
Got rid of the NgTouch and replaced it with fastclick directive for 300ms delay (https://github.com/burnedikt/angular-fastclick) and things are working as expected now.

@petebacondarwin
Copy link
Member

@ChristianV - I don't think we can land this PR as it is since you are basically removing something, that even has a test, and was fixing another bug. This means that this PR would cause that bug to reappear.

Instead how about we consider the more drastic action of removing ngClick from ngTouch altogether?
#2989 (comment)

@christianvuerings
Copy link
Contributor

@petebacondarwin created a follow up at #12317 - would you be able to take a look?

@petebacondarwin
Copy link
Member

Closing in favour of #12317

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

Successfully merging this pull request may close these issues.

ngTouch: ng-click directive is broking default behaviour of child elements
6 participants