Bug 1493937 - Highlighting the various margin/border/padding/content regions from the box-model does not work anymore r=pbro
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Tue, 09 Oct 2018 07:41:35 +0000
changeset 495890 98972a72031fb348d5b4f33d5c1efc43c79e3caa
parent 495889 55515c0020e19a07152c84692a12adfd4bb40fc9
child 495891 3bc82182725eb9edc31fd0ef19f7f659ab612020
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1493937
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1493937 - Highlighting the various margin/border/padding/content regions from the box-model does not work anymore r=pbro 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
@@ -275,16 +275,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