From c402ec40a5efde46a4eb668c6d7d5d3a5c53e89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 8 Oct 2023 01:04:04 +0200 Subject: [PATCH] Fixed initial rendering of default currency item in freshly initialized currency selectors --- .../elements/structural_entity_select_controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/controllers/elements/structural_entity_select_controller.js b/assets/controllers/elements/structural_entity_select_controller.js index 60831602..f3c321ea 100644 --- a/assets/controllers/elements/structural_entity_select_controller.js +++ b/assets/controllers/elements/structural_entity_select_controller.js @@ -66,7 +66,8 @@ export default class extends Controller { }; this._tomSelect = new TomSelect(this.element, settings); - this._tomSelect.sync(); + //Do not do a sync here as this breaks the initial rendering of the empty option + //this._tomSelect.sync(); } createItem(input, callback) {