@schukai/monster 4.35.0 → 4.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/source/components/form/select.mjs +13 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.2","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.2","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.36.0"}
|
@@ -587,6 +587,7 @@ class Select extends CustomControl {
|
|
587
587
|
checkOptionState.call(this);
|
588
588
|
calcAndSetOptionsDimension.call(this);
|
589
589
|
updatePopper.call(this);
|
590
|
+
initTotal.call(this);
|
590
591
|
})
|
591
592
|
.catch((e) => {
|
592
593
|
addErrorAttribute(this, e);
|
@@ -3212,6 +3213,18 @@ function toggle() {
|
|
3212
3213
|
function initEventHandler() {
|
3213
3214
|
const self = this;
|
3214
3215
|
|
3216
|
+
setTimeout(() => {
|
3217
|
+
let lastUrl = self.getOption("url");
|
3218
|
+
this.attachObserver(
|
3219
|
+
new Observer(() => {
|
3220
|
+
if (this.getOption("url") !== lastUrl) {
|
3221
|
+
lastUrl = this.getOption("url");
|
3222
|
+
this.reset();
|
3223
|
+
}
|
3224
|
+
}),
|
3225
|
+
);
|
3226
|
+
}, 100);
|
3227
|
+
|
3215
3228
|
/**
|
3216
3229
|
* @param {Event} event
|
3217
3230
|
*/
|