Skip to content

Commit

Permalink
Stop breakpoint label click from toggling breakpoint (firefox-devtool…
Browse files Browse the repository at this point in the history
…s#4269)

Addresses firefox-devtools#4262

Provides the primary purpose of linking to the breakpoint's location in
source.
  • Loading branch information
frankjwu authored and Johnny Khalil committed Oct 13, 2017
1 parent 67cdb34 commit d15a696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/components/SecondaryPanes/Breakpoints.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ html .breakpoints-list .breakpoint.paused {
overflow-x: hidden;
text-overflow: ellipsis;
padding: 1px 0;
vertical-align: bottom;
}

.breakpoints-list .pause-indicator {
Expand Down
14 changes: 7 additions & 7 deletions src/components/SecondaryPanes/Breakpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,14 @@ class Breakpoints extends PureComponent {
onClick={() => this.selectBreakpoint(breakpoint)}
onContextMenu={e => this.showContextMenu(e, breakpoint)}
>
<input
type="checkbox"
className="breakpoint-checkbox"
checked={!isDisabled}
onChange={() => this.handleCheckbox(breakpoint)}
onClick={ev => ev.stopPropagation()}
/>
<label className="breakpoint-label" title={breakpoint.text}>
<input
type="checkbox"
className="breakpoint-checkbox"
checked={!isDisabled}
onChange={() => this.handleCheckbox(breakpoint)}
onClick={ev => ev.stopPropagation()}
/>
{renderSourceLocation(breakpoint.location.source, line, column)}
</label>
<div className="breakpoint-snippet">{snippet}</div>
Expand Down

0 comments on commit d15a696

Please sign in to comment.