Bug 911671 - [markup view] Holding up/down on a number value should update preview while number changes r=mratcliffe
authorBrian Grinstead <bgrinstead@mozilla.com>
Wed, 04 Sep 2013 09:18:23 -0500
changeset 145678 d4e22cde2adfe9b5ce3b1e76228ec2305c23f09f
parent 145677 52d436a29df0b617fb3085f3518bdf325b2c5e8b
child 145679 b6756fb5d78dafc77cee06f19f797b30880a65a0
push id2506
push userprouget@mozilla.com
push dateThu, 05 Sep 2013 17:04:07 +0000
treeherderfx-team@ba3799c9da86 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmratcliffe
bugs911671
milestone26.0a1
Bug 911671 - [markup view] Holding up/down on a number value should update preview while number changes r=mratcliffe
browser/devtools/shared/inplace-editor.js
--- a/browser/devtools/shared/inplace-editor.js
+++ b/browser/devtools/shared/inplace-editor.js
@@ -347,16 +347,17 @@ InplaceEditor.prototype = {
                                            selectionEnd);
 
     if (!newValue) {
       return false;
     }
 
     this.input.value = newValue.value;
     this.input.setSelectionRange(newValue.start, newValue.end);
+    this.warning.hidden = this.validate(this.input.value);
 
     return true;
   },
 
   /**
    * Increment the property value based on the property type.
    *
    * @param {string} value