@schukai/monster 3.102.4 → 3.102.5

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.102.5] - 2025-01-30
6
+
7
+ ### Bug Fixes
8
+
9
+ - **select:** remove fireEvent [#291](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/291)
10
+
11
+
12
+
5
13
  ## [3.102.4] - 2025-01-29
6
14
 
7
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@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":"3.102.4"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@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":"3.102.5"}
@@ -2298,7 +2298,7 @@ function setSelection(selection) {
2298
2298
  selection,
2299
2299
  });
2300
2300
 
2301
- fireEvent(this, "change");
2301
+ //fireEvent(this, "change"); // https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/291
2302
2302
 
2303
2303
  return new Processing(() => {
2304
2304
  const CLASSNAME = "selected";
@@ -363,14 +363,13 @@ const debounceValueSymbol = Symbol("debounceValue");
363
363
  */
364
364
  function initValueAttributeObserver() {
365
365
  const self = this;
366
-
367
366
  this[attributeObserverSymbol]["value"] = () => {
367
+
368
368
  if (self[debounceValueSymbol] instanceof DeadMansSwitch) {
369
369
  try {
370
370
  self[debounceValueSymbol].touch();
371
371
  return;
372
372
  } catch (e) {
373
- // catch Error("has already run");
374
373
  if (e.message !== "has already run") {
375
374
  throw e;
376
375
  }
@@ -378,14 +377,14 @@ function initValueAttributeObserver() {
378
377
  }
379
378
  }
380
379
 
381
- self[debounceValueSymbol] = new DeadMansSwitch(50, () => {
380
+ self[debounceValueSymbol] = new DeadMansSwitch(10, () => {
382
381
  const oldValue = self.getAttribute("value");
383
382
  const newValue = self.getOption("value");
384
383
 
385
384
  if (oldValue !== newValue) {
386
- queueMicrotask(() => {
385
+ setTimeout(() => {
387
386
  this.setOption("value", this.getAttribute("value"));
388
- });
387
+ },0);
389
388
 
390
389
  }
391
390
  });