mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-04-23 19:32:14 +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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user