Skip to content

Commit

Permalink
update on keyup (arrow up and down only) for numerical input #341 (127)
Browse files Browse the repository at this point in the history
  • Loading branch information
abirEF committed Jul 4, 2024
1 parent af01ad7 commit 476a48d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,11 @@ function flatUiWidgetsPluginClass() {
if (modelsParameters[idInstance].validationOnFocusOut) {
$widget.on('focusout', (e) => self.updateValue(e));
}
$widget.off('keyup').on('keyup', function (e) {
if (e.which === 38 || e.which === 40) {
self.updateValue(e);
}
});
$widget.off('click').on('click', (e) => self.updateValue(e));

if (modelsParameters[idInstance].validationButton) {
Expand Down

0 comments on commit 476a48d

Please sign in to comment.