mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
input validation works much better while using input event to do the manipulation
This commit is contained in:
parent
e87c0ca4ee
commit
78b92ab5e7
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -214,7 +214,7 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#content").on('change', 'input[type="number"]', function () {
|
$("#content").on('input', 'input[type="number"]', function () {
|
||||||
var element = $(this),
|
var element = $(this),
|
||||||
min = parseFloat(element.prop('min')),
|
min = parseFloat(element.prop('min')),
|
||||||
max = parseFloat(element.prop('max')),
|
max = parseFloat(element.prop('max')),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue