Bug 1522138 - [release 120] [Breakpoint] fix selectBreakpoint (#7756). r=dwalsh

This commit is contained in:
Jason Laster 2019-01-24 15:23:29 -05:00 коммит произвёл Jason Laster
Родитель 59aaefa333
Коммит 960bb668a9
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -74,7 +74,8 @@ class Breakpoint extends PureComponent<Props> {
} }
}; };
selectBreakpoint = () => { selectBreakpoint = event => {
event.preventDefault();
const { selectSpecificLocation } = this.props; const { selectSpecificLocation } = this.props;
selectSpecificLocation(this.selectedLocation); selectSpecificLocation(this.selectedLocation);
}; };
@ -163,6 +164,7 @@ class Breakpoint extends PureComponent<Props> {
<label <label
htmlFor={breakpoint.id} htmlFor={breakpoint.id}
className="breakpoint-label cm-s-mozilla" className="breakpoint-label cm-s-mozilla"
onClick={this.selectBreakpoint}
title={this.getBreakpointText()} title={this.getBreakpointText()}
> >
<span dangerouslySetInnerHTML={this.highlightText()} /> <span dangerouslySetInnerHTML={this.highlightText()} />

Просмотреть файл

@ -16,6 +16,7 @@ exports[`Breakpoint disabled 1`] = `
/> />
<label <label
className="breakpoint-label cm-s-mozilla" className="breakpoint-label cm-s-mozilla"
onClick={[Function]}
> >
<span <span
dangerouslySetInnerHTML={ dangerouslySetInnerHTML={
@ -57,6 +58,7 @@ exports[`Breakpoint paused at a different 1`] = `
/> />
<label <label
className="breakpoint-label cm-s-mozilla" className="breakpoint-label cm-s-mozilla"
onClick={[Function]}
> >
<span <span
dangerouslySetInnerHTML={ dangerouslySetInnerHTML={
@ -98,6 +100,7 @@ exports[`Breakpoint paused at a generatedLocation 1`] = `
/> />
<label <label
className="breakpoint-label cm-s-mozilla" className="breakpoint-label cm-s-mozilla"
onClick={[Function]}
> >
<span <span
dangerouslySetInnerHTML={ dangerouslySetInnerHTML={
@ -139,6 +142,7 @@ exports[`Breakpoint paused at an original location 1`] = `
/> />
<label <label
className="breakpoint-label cm-s-mozilla" className="breakpoint-label cm-s-mozilla"
onClick={[Function]}
> >
<span <span
dangerouslySetInnerHTML={ dangerouslySetInnerHTML={
@ -180,6 +184,7 @@ exports[`Breakpoint simple 1`] = `
/> />
<label <label
className="breakpoint-label cm-s-mozilla" className="breakpoint-label cm-s-mozilla"
onClick={[Function]}
> >
<span <span
dangerouslySetInnerHTML={ dangerouslySetInnerHTML={