Set selectOnTab option for tomSelect inputs

This commit is contained in:
Jan Böhmer 2023-02-06 22:59:03 +01:00
parent 8f646e7e7b
commit 7989d4e344
3 changed files with 3 additions and 0 deletions

View file

@ -33,6 +33,7 @@ export default class extends Controller {
create: true, create: true,
maxItems: 1, maxItems: 1,
createOnBlur: true, createOnBlur: true,
selectOnTab: true,
//This a an ugly solution to disable the delimiter parsing of the TomSelect plugin //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', delimiter: 'VERY_L0NG_D€LIMITER_WHICH_WILL_NEVER_BE_ENCOUNTERED_IN_A_STRING',
render: { render: {

View file

@ -33,6 +33,7 @@ export default class extends Controller {
} }
}, },
persistent: false, persistent: false,
selectOnTab: true,
createOnBlur: true, createOnBlur: true,
create: true, create: true,
}; };

View file

@ -58,6 +58,7 @@ export default class extends Controller
//This a an ugly solution to disable the delimiter parsing of the TomSelect plugin //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', delimiter: 'VERY_L0NG_D€LIMITER_WHICH_WILL_NEVER_BE_ENCOUNTERED_IN_A_STRING',
createOnBlur: true, createOnBlur: true,
selectOnTab: true,
create: true, create: true,
searchField: "name", searchField: "name",
//labelField: "name", //labelField: "name",