Skip to content

Commit

Permalink
removed e.preventDefault for tab keydown event
Browse files Browse the repository at this point in the history
  • Loading branch information
yairEO committed Nov 23, 2024
1 parent 05e86a4 commit a321d15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/parts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ export default {
var dropdownCanBeShown = _s.dropdown.enabled === 0 && !this.state.dropdown.visible,
condition2 = !targetIsTagNode || _s.mode === 'select'

this.toggleFocusClass(true);
this.trigger("focus", eventData)
// e.target.classList.remove('placeholder');
if( dropdownCanBeShown && condition2 ){ // && _s.mode != "select"
Expand Down Expand Up @@ -496,10 +495,9 @@ export default {
}
break
}

case 'Tab' : {
let selectMode = _s.mode == 'select'
if(s && !selectMode) e.preventDefault()
else return true;
return true;
}

case 'Enter' :
Expand Down

0 comments on commit a321d15

Please sign in to comment.