From 960bb668a96e1a5c6f597f524d1ebf65014aa6dc Mon Sep 17 00:00:00 2001 From: Jason Laster Date: Thu, 24 Jan 2019 15:23:29 -0500 Subject: [PATCH] Bug 1522138 - [release 120] [Breakpoint] fix selectBreakpoint (#7756). r=dwalsh --- .../src/components/SecondaryPanes/Breakpoints/Breakpoint.js | 4 +++- .../Breakpoints/tests/__snapshots__/Breakpoint.spec.js.snap | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/devtools/client/debugger/new/src/components/SecondaryPanes/Breakpoints/Breakpoint.js b/devtools/client/debugger/new/src/components/SecondaryPanes/Breakpoints/Breakpoint.js index 0a97bfcf7caf..fd26796dae4d 100644 --- a/devtools/client/debugger/new/src/components/SecondaryPanes/Breakpoints/Breakpoint.js +++ b/devtools/client/debugger/new/src/components/SecondaryPanes/Breakpoints/Breakpoint.js @@ -74,7 +74,8 @@ class Breakpoint extends PureComponent { } }; - selectBreakpoint = () => { + selectBreakpoint = event => { + event.preventDefault(); const { selectSpecificLocation } = this.props; selectSpecificLocation(this.selectedLocation); }; @@ -163,6 +164,7 @@ class Breakpoint extends PureComponent {