Skip to content

Commit

Permalink
fix(tap): Do not detect taps for input[type=file], closes #652
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Mar 10, 2014
1 parent c91622b commit 6f2d6e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions js/ext/angular/test/clickTests.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<form id="form">
<button class="button" ng-click="buttonClick()">button</button>
<div class="div button" ng-click="divClick()">div</div>
<input type="file">
{{ buttonValue }} -
{{ radioModel.data }}

Expand Down
4 changes: 2 additions & 2 deletions js/utils/poly.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

var ele = target.control || target;

if(ele.disabled) return;
if(ele.disabled || ele.type === 'file') return;

console.debug('tapElement', ele.tagName, ele.className);

Expand Down Expand Up @@ -126,7 +126,7 @@

for(var x=0; x<5; x++) {
// climb up the DOM looking to see if the tapped element is, or has a parent, of one of these
// only climb up a max of 5 parents, anything more is probably isn't beneficial
// only climb up a max of 5 parents, anything more probably isn't beneficial
if(!ele) break;

if( ele.tagName === "INPUT" ||
Expand Down

0 comments on commit 6f2d6e7

Please sign in to comment.