adminforth 4.6.0 → 4.6.1

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.
@@ -18,6 +18,14 @@ app.use(router)
18
18
  // get access to i18n instance outside components
19
19
  initI18n(app);
20
20
 
21
+ // Chrome steps a focused number input on wheel, so scrolling the page with the cursor over the field
22
+ // silently changes a price or amount; blurring it first lets the page scroll and keeps the value
23
+ document.addEventListener('wheel', (e) => {
24
+ if (e.target instanceof HTMLInputElement && e.target.type === 'number' && e.target === document.activeElement) {
25
+ e.target.blur();
26
+ }
27
+ }, { passive: true });
28
+
21
29
 
22
30
  /* IMPORTANT:ADMINFORTH CUSTOM USES */
23
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "OpenSource Agent-Native forth-generation admin panel",
5
5
  "keywords": [
6
6
  "adminforth",