summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/progress_bar.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/widgets/progress_bar.js')
-rw-r--r--addons/web/static/src/js/widgets/progress_bar.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/widgets/progress_bar.js b/addons/web/static/src/js/widgets/progress_bar.js
index abe1009b1fa..6ccd1e74f28 100644
--- a/addons/web/static/src/js/widgets/progress_bar.js
+++ b/addons/web/static/src/js/widgets/progress_bar.js
@@ -72,6 +72,9 @@ var ProgressBar = Widget.extend({
on_change_input: function(e) {
var $input = $(e.target);
+ if(e.type === 'change' && !$input.is(':focus')) {
+ return;
+ }
if(isNaN($input.val())) {
this.do_warn(_t("Wrong value entered!"), _t("Only Integer Value should be valid."));
} else {