Skip to content

Commit

Permalink
fix(core): don't swipe over <select> element
Browse files Browse the repository at this point in the history
fixes #5268
  • Loading branch information
nolimits4web committed Jan 25, 2022
1 parent 8731204 commit faeb14a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/events/onTouchStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ export default function onTouchStart(event) {
if (params.threshold > 0) data.allowThresholdMove = false;
if (e.type !== 'touchstart') {
let preventDefault = true;
if ($targetEl.is(data.focusableElements)) preventDefault = false;
if ($targetEl.is(data.focusableElements)) {
preventDefault = false;
if ($targetEl[0].nodeName === 'SELECT') {
data.isTouched = false;
}
}
if (
document.activeElement &&
$(document.activeElement).is(data.focusableElements) &&
Expand Down

0 comments on commit faeb14a

Please sign in to comment.