Do not split up pasted input on structrual entity selectors. This caused a part of the string to get split/lost

Fixes issue #538
This commit is contained in:
Jan Böhmer 2024-03-04 21:51:26 +01:00
parent 0cd631774b
commit cf39e1f259

View file

@ -44,6 +44,11 @@ export default class extends Controller {
maxOptions: null, maxOptions: null,
create: allowAdd ? this.createItem.bind(this) : false, create: allowAdd ? this.createItem.bind(this) : false,
// This three options allow us to paste element names with commas: (see issue #538)
maxItems: 1,
delimiter: "$$VERY_LONG_DELIMITER_THAT_SHOULD_NEVER_APPEAR$$",
splitOn: null,
searchField: [ searchField: [
{field: "text", weight : 2}, {field: "text", weight : 2},
{field: "parent", weight : 0.5}, {field: "parent", weight : 0.5},