Skip to content

Commit

Permalink
Fix delete key behavior in select mode
Browse files Browse the repository at this point in the history
When using delete key the focus was lost when using backspace
  • Loading branch information
Massi-X committed Nov 24, 2024
1 parent 29a8fe9 commit 2b66604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default {
case 'Backspace': {
if( !_s.readonly && !this.state.editing ) {
this.removeTags(focusedElm);
(nextTag ? nextTag : this.DOM.input).focus()
setTimeout(() => (nextTag ? nextTag : this.DOM.input).focus(), 0)
}

break;
Expand Down

0 comments on commit 2b66604

Please sign in to comment.