Bug 1493937 - Highlighting the various margin/border/padding/content regions from the box-model does not work anymore. r=pbro, a=pascalc
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Tue, 09 Oct 2018 07:41:35 +0000
changeset 490267 db5fb5feecf9
parent 490266 c79baa59f78f
child 490268 66ab8622488c
push id9969
push userryanvm@gmail.com
push date2018-10-11 17:41 +0000
treeherdermozilla-beta@f439e5f9e3d3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro, pascalc
bugs1493937
milestone63.0
Bug 1493937 - Highlighting the various margin/border/padding/content regions from the box-model does not work anymore. r=pbro, a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D8020
devtools/client/inspector/boxmodel/components/BoxModelMain.js
--- a/devtools/client/inspector/boxmodel/components/BoxModelMain.js
+++ b/devtools/client/inspector/boxmodel/components/BoxModelMain.js
@@ -276,16 +276,18 @@ class BoxModelMain extends PureComponent
       this.props.onHideBoxModelHighlighter();
     }
 
     this.props.onShowBoxModelHighlighter({
       region,
       showOnly: region,
       onlyRegionArea: true,
     });
+
+    event.preventDefault();
   }
 
   /**
    * Handle keyboard navigation and focus for box model layouts.
    *
    * Updates active layout on arrow key navigation
    * Focuses next layout's editboxes on enter key
    * Unfocuses current layout's editboxes when active layout changes