|
1 | 1 | import { Controller } from '@hotwired/stimulus';
|
2 | 2 | import TomSelect from 'tom-select';
|
3 | 3 |
|
4 |
| -/****************************************************************************** |
5 |
| -Copyright (c) Microsoft Corporation. |
6 |
| -
|
7 |
| -Permission to use, copy, modify, and/or distribute this software for any |
8 |
| -purpose with or without fee is hereby granted. |
9 |
| -
|
10 |
| -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
11 |
| -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
12 |
| -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
13 |
| -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
14 |
| -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
15 |
| -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
16 |
| -PERFORMANCE OF THIS SOFTWARE. |
17 |
| -***************************************************************************** */ |
18 |
| - |
19 |
| -function __classPrivateFieldGet(receiver, state, kind, f) { |
20 |
| - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); |
21 |
| - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); |
22 |
| - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); |
| 4 | +/****************************************************************************** |
| 5 | +Copyright (c) Microsoft Corporation. |
| 6 | +
|
| 7 | +Permission to use, copy, modify, and/or distribute this software for any |
| 8 | +purpose with or without fee is hereby granted. |
| 9 | +
|
| 10 | +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
| 11 | +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
| 12 | +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
| 13 | +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| 14 | +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
| 15 | +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | +PERFORMANCE OF THIS SOFTWARE. |
| 17 | +***************************************************************************** */ |
| 18 | + |
| 19 | +function __classPrivateFieldGet(receiver, state, kind, f) { |
| 20 | + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); |
| 21 | + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); |
| 22 | + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); |
23 | 23 | }
|
24 | 24 |
|
25 | 25 | var _default_1_instances, _default_1_getCommonConfig, _default_1_createAutocomplete, _default_1_createAutocompleteWithHtmlContents, _default_1_createAutocompleteWithRemoteData, _default_1_stripTags, _default_1_mergeObjects, _default_1_createTomSelect;
|
@@ -193,7 +193,7 @@ class default_1 extends Controller {
|
193 | 193 | this.resetTomSelect();
|
194 | 194 | }
|
195 | 195 | if (changeDisabledState) {
|
196 |
| - this.changeTomSelectDisabledState((this.formElement.disabled)); |
| 196 | + this.changeTomSelectDisabledState(this.formElement.disabled); |
197 | 197 | }
|
198 | 198 | if (changePlaceholder) {
|
199 | 199 | this.updateTomSelectPlaceholder();
|
|
0 commit comments