Clear input after option selection in tomselect fields

Fixes issue #1264
This commit is contained in:
Jan Böhmer 2026-03-07 21:22:29 +01:00
parent 12a760d27e
commit a722608ae8
8 changed files with 11 additions and 1 deletions

View file

@ -45,6 +45,7 @@ export default class extends Controller {
maxItems: 1,
createOnBlur: true,
selectOnTab: true,
clearAfterSelect: true,
//This a an ugly solution to disable the delimiter parsing of the TomSelect plugin
delimiter: 'VERY_L0NG_D€LIMITER_WHICH_WILL_NEVER_BE_ENCOUNTERED_IN_A_STRING',
dropdownParent: dropdownParent,