Bug 1294929 - remove no-match class when tap clear button; r=gl
authorFred Lin <gasolin@mozilla.com>
Mon, 15 Aug 2016 10:59:37 +0800
changeset 401007 c9d9d817ae305b37464b7e5b222c1113c0646fd0
parent 401006 76aa2e3efbdd01a2c44067e62be594683ebca60a
child 401008 c1e05ecbb0124b3a8e5b7b8d0e4151743a9fd6e3
child 401142 c289e719ca5dbb182f198c0322793769d9fa0092
child 403591 c35fb5ec61015f85ad750e881ca3b2edec6f1ed3
push id26333
push userjwein@mozilla.com
push dateTue, 16 Aug 2016 05:18:03 +0000
reviewersgl
bugs1294929
milestone51.0a1
Bug 1294929 - remove no-match class when tap clear button; r=gl MozReview-Commit-ID: 8OSFZ1T6B5U
devtools/client/inspector/inspector-search.js
--- a/devtools/client/inspector/inspector-search.js
+++ b/devtools/client/inspector/inspector-search.js
@@ -127,16 +127,17 @@ InspectorSearch.prototype = {
                         ? event.metaKey : event.ctrlKey;
     if (event.keyCode === event.DOM_VK_G && modifierKey) {
       this._onSearch(event.shiftKey);
       event.preventDefault();
     }
   },
 
   _onClearSearch: function () {
+    this.searchBox.classList.remove("devtools-style-searchbox-no-match");
     this.searchBox.value = "";
     this.searchClearButton.hidden = true;
   }
 };
 
 /**
  * Converts any input box on a page to a CSS selector search and suggestion box.
  *