diff --git a/assets/controllers/elements/structural_entity_select_controller.js b/assets/controllers/elements/structural_entity_select_controller.js index f3c321ea..5280c339 100644 --- a/assets/controllers/elements/structural_entity_select_controller.js +++ b/assets/controllers/elements/structural_entity_select_controller.js @@ -44,6 +44,11 @@ export default class extends Controller { maxOptions: null, 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: [ {field: "text", weight : 2}, {field: "parent", weight : 0.5},