Bug 1471779 - Use the correct operator when checking if it's a grid or inline grid for toggling the display badges. r=pbro
MozReview-Commit-ID: KkpsUuwlWVH
--- a/devtools/client/inspector/markup/views/element-editor.js
+++ b/devtools/client/inspector/markup/views/element-editor.js
@@ -643,17 +643,17 @@ ElementEditor.prototype = {
/**
* Called when the display badge is clicked. Toggles on the grid highlighter for the
* selected node if it is a grid container.
*/
onDisplayBadgeClick: function(event) {
event.stopPropagation();
const target = event.target;
- if (target.dataset.display !== "grid" || target.dataset.display !== "inline-grid") {
+ if (target.dataset.display !== "grid" && target.dataset.display !== "inline-grid") {
return;
}
this.highlighters.toggleGridHighlighter(this.inspector.selection.nodeFront, "markup");
},
/**
* Called when the tag name editor has is done editing.