We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df17f86 commit ba13d56Copy full SHA for ba13d56
src/Autocomplete/assets/src/controller.ts
@@ -86,6 +86,9 @@ export default class extends Controller {
86
87
disconnect() {
88
this.stopMutationObserver();
89
+
90
+ // TomSelect.destroy() resets the element to its original HTML. This
91
+ // causes the selected value to be lost. We store it.
92
let currentSelectedValues: string[] = [];
93
if (this.selectElement) {
94
if (this.selectElement.multiple) {
0 commit comments