Bug 1294929 - remove no-match class when tap clear button; r?gl
MozReview-Commit-ID: 1z0q4jqoPwP
--- 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.
*