diff --git a/src/Autocomplete/assets/dist/controller.js b/src/Autocomplete/assets/dist/controller.js
index c6e9660b1d6..7d9d148dd26 100644
--- a/src/Autocomplete/assets/dist/controller.js
+++ b/src/Autocomplete/assets/dist/controller.js
@@ -318,7 +318,7 @@ _default_1_instances = new WeakSet(), _default_1_getCommonConfig = function _def
return `
${this.noResultsFoundTextValue}
`;
},
option_create: (data, escapeData) => {
- return `${this.createOptionTextValue} ${escapeData(data.input)}…
`;
+ return `${this.createOptionTextValue.replace('%placeholder%', `${escapeData(data.input)}`)}
`;
},
},
preload: this.preload,
diff --git a/src/Autocomplete/assets/src/controller.ts b/src/Autocomplete/assets/src/controller.ts
index af7f096a387..62fe734ecb1 100644
--- a/src/Autocomplete/assets/src/controller.ts
+++ b/src/Autocomplete/assets/src/controller.ts
@@ -253,7 +253,7 @@ export default class extends Controller {
return `${this.noResultsFoundTextValue}
`;
},
option_create: (data: TomOption, escapeData: typeof escape_html): string => {
- return `${this.createOptionTextValue} ${escapeData(data.input)}…
`;
+ return `${this.createOptionTextValue.replace('%placeholder%', `${escapeData(data.input)}`)}
`;
},
},
preload: this.preload,