Fixed initial rendering of default currency item in freshly initialized currency selectors

This commit is contained in:
Jan Böhmer 2023-10-08 01:04:04 +02:00
parent 1964084155
commit c402ec40a5

View file

@ -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) {