Browse Source

SONAR-11444 Issue comment form should not close automatically when selecting code

tags/7.6
Wouter Admiraal 5 years ago
parent
commit
c39e2257d8

+ 1
- 0
server/sonar-web/src/main/js/components/issue/components/IssueCommentAction.tsx View File

@@ -51,6 +51,7 @@ export default class IssueCommentAction extends React.PureComponent<Props> {
return (
<li className="issue-meta dropdown">
<Toggler
closeOnClickOutside={false}
onRequestClose={this.handleClose}
open={this.props.currentPopup === 'comment'}
overlay={

+ 1
- 0
server/sonar-web/src/main/js/components/issue/components/IssueCommentLine.tsx View File

@@ -98,6 +98,7 @@ export default class IssueCommentLine extends React.PureComponent<Props, State>
{comment.updatable && (
<div className="dropdown">
<Toggler
closeOnClickOutside={false}
onRequestClose={this.closePopups}
open={this.state.openPopup === 'edit'}
overlay={

+ 2
- 0
server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentAction-test.tsx.snap View File

@@ -5,6 +5,7 @@ exports[`should open the popup when the button is clicked 1`] = `
className="issue-meta dropdown"
>
<Toggler
closeOnClickOutside={false}
onRequestClose={[Function]}
open={true}
overlay={
@@ -46,6 +47,7 @@ exports[`should render correctly 1`] = `
className="issue-meta dropdown"
>
<Toggler
closeOnClickOutside={false}
onRequestClose={[Function]}
open={false}
overlay={

+ 2
- 0
server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentLine-test.tsx.snap View File

@@ -50,6 +50,7 @@ exports[`should open the right popups when the buttons are clicked 3`] = `
className="dropdown"
>
<Toggler
closeOnClickOutside={false}
onRequestClose={[Function]}
open={false}
overlay={
@@ -175,6 +176,7 @@ exports[`should render correctly a comment that is updatable 1`] = `
className="dropdown"
>
<Toggler
closeOnClickOutside={false}
onRequestClose={[Function]}
open={false}
overlay={

Loading…
Cancel
Save