Skip to content

Commit

Permalink
🐞 dismiss <option> pointerDowns for Firefox
Browse files Browse the repository at this point in the history
Ref #403
  • Loading branch information
desandro committed Aug 12, 2016
1 parent 8decf7b commit 67f4f56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ proto._childUIPointerDownDrag = function( event ) {
var cursorNodes = {
TEXTAREA: true,
INPUT: true,
OPTION: true,
};

// input types that do not have text fields
Expand All @@ -105,7 +106,7 @@ var clickTypes = {
};

proto.pointerDown = function( event, pointer ) {
// dismiss inputs with text fields. #404
// dismiss inputs with text fields. #403, #404
var isCursorInput = cursorNodes[ event.target.nodeName ] &&
!clickTypes[ event.target.type ];
if ( isCursorInput ) {
Expand Down

0 comments on commit 67f4f56

Please sign in to comment.