From 2b66604e976e9843818856b3971505b7c8bbd674 Mon Sep 17 00:00:00 2001 From: Massi-X Date: Sun, 24 Nov 2024 14:03:57 +0100 Subject: [PATCH] Fix delete key behavior in select mode When using delete key the focus was lost when using backspace --- src/parts/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parts/events.js b/src/parts/events.js index 6e1432b1..55731f01 100644 --- a/src/parts/events.js +++ b/src/parts/events.js @@ -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;