Skip to content

Commit 231c398

Browse files
bug #738 [Site] Upgrading to latest version + other changes (weaverryan)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Site] Upgrading to latest version + other changes | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | None | License | MIT * Updating to latest version of UX (which will become 2.8.0) * Upgrading deps * Various small changes and fixes TODO: * [x] Use symfony/stimulus-bridge#81 when it's available Commits ------- 6c9675bf [Site] Upgrading to latest version + other changes
2 parents 5bb4402 + d04537e commit 231c398

File tree

16 files changed

+1201
-1173
lines changed

16 files changed

+1201
-1173
lines changed

src/Autocomplete/assets/dist/controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class default_1 extends Controller {
112112
}
113113
if (placeholder) {
114114
this.stopMutationObserver();
115+
this.tomSelect.settings.placeholder = placeholder;
115116
this.tomSelect.control_input.setAttribute('placeholder', placeholder);
116117
this.startMutationObserver();
117118
}

src/Autocomplete/assets/src/controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ export default class extends Controller {
290290

291291
if (placeholder) {
292292
this.stopMutationObserver();
293+
// override settings so it's used again later
294+
this.tomSelect.settings.placeholder = placeholder;
295+
// and set it right now
293296
this.tomSelect.control_input.setAttribute('placeholder', placeholder);
294297
this.startMutationObserver();
295298
}

ux.symfony.com/assets/bootstrap.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ export const app = startStimulusApp(require.context(
1111
app.debug = process.env.NODE_ENV === 'development';
1212

1313
app.register('clipboard', Clipboard);
14-
app.register('live', Live);
1514
// register any custom, 3rd party controllers here
1615

Loading

0 commit comments

Comments
 (0)