diff --git a/assets/src/controller.ts b/assets/src/controller.ts index 2b6eacf..e140be2 100644 --- a/assets/src/controller.ts +++ b/assets/src/controller.ts @@ -41,6 +41,8 @@ export default class extends Controller { disconnect() { this.tomSelect.destroy(); + // Fixes https://github.com/symfony/ux/issues/407 + this.tomSelect = undefined; } #getCommonConfig(): Partial {