Bug 1294929 - remove no-match class when tap clear button; r?gl draft
authorFred Lin <gasolin@mozilla.com>
Mon, 15 Aug 2016 10:59:37 +0800
changeset 400536 1e227b21985be731ecc9a6e2482d580425f6ebf7
parent 400535 2e6551eb6c8e01fdff689b148d60ca7f2807b66b
child 528229 eae59ead3eae98e218017cc76bf3e3bb47a312c9
push id26175
push userbmo:gasolin@mozilla.com
push dateMon, 15 Aug 2016 03:00:03 +0000
reviewersgl
bugs1294929
milestone51.0a1
Bug 1294929 - remove no-match class when tap clear button; r?gl MozReview-Commit-ID: 1z0q4jqoPwP
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.
  *