mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-04-24 03:42:11 +00:00
Fix browser incrmenting numberInput by itself while scrolling
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
753675b15c
commit
854c5fae1e
@ -19,6 +19,10 @@ export default class NumberInput extends DefaultInput {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Desactivate Wheel Event
|
||||||
|
element.addEventListener("wheel", (e: WheelEvent) => {
|
||||||
|
if (document.activeElement === this.element) e.preventDefault()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
public formatValue(value: any): number|undefined {
|
public formatValue(value: any): number|undefined {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user