Skip to content

Commit

Permalink
Merge PR OCA#2700 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by yajo
  • Loading branch information
OCA-git-bot committed Dec 22, 2023
2 parents 3e4027a + 48eb4e6 commit 0e2ba28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web_widget_numeric_step/static/src/numeric_step.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ import {registry} from "@web/core/registry";
import {standardFieldProps} from "@web/views/fields/standard_field_props";
import {_lt} from "@web/core/l10n/translation";
import {FloatField} from "@web/views/fields/float/float_field";
import {hasTouch} from "@web/core/browser/feature_detection";

export class NumericStep extends FloatField {
setup() {
super.setup();
}
_onStepClick(ev) {
const $el = $(ev.target).parent().parent().find("input");
$el.focus();
if (!hasTouch()) {
$el.focus();
}
const mode = $(ev.target).data("mode");
this._doStep(mode);
}
Expand Down

0 comments on commit 0e2ba28

Please sign in to comment.