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.
- package/dist/spa/src/main.ts +8 -0
- package/package.json +1 -1
package/dist/spa/src/main.ts
CHANGED
|
@@ -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
|
|