Skip to content

Commit

Permalink
also check parent element when checking against inputTags
Browse files Browse the repository at this point in the history
  • Loading branch information
ynicolaou committed Apr 21, 2017
1 parent d778122 commit 8f6cf74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/angular-gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,8 @@
}

function mouseDown(e) {
if (inputTags.indexOf(e.target.nodeName.toLowerCase()) !== -1) {
if (inputTags.indexOf(e.target.nodeName.toLowerCase()) !== -1 ||
inputTags.indexOf(e.target.parentNode.nodeName.toLowerCase()) !== -1) {
return false;
}

Expand Down

0 comments on commit 8f6cf74

Please sign in to comment.