@pageboard/html 0.15.5 → 0.15.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ui/form.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.15.5",
3
+ "version": "0.15.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
package/ui/form.js CHANGED
@@ -366,7 +366,13 @@ class HTMLElementForm extends Page.create(HTMLFormElement) {
366
366
  vary = "patch";
367
367
  }
368
368
  }
369
- state.push(loc, { vary });
369
+ state.debounce(
370
+ () => {
371
+ msg.classList.remove('visible');
372
+ return state.push(loc, { vary });
373
+ },
374
+ msg.dataset.fading ? 1000 : 100
375
+ )();
370
376
  }
371
377
  }
372
378
  window.HTMLElementForm = HTMLElementForm;