mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:21:58 +08:00
ClickOutside should only toggle action when open
This commit is contained in:
@@ -28,9 +28,11 @@ export default class PermalinkButton extends React.Component {
|
||||
}
|
||||
|
||||
handleClickOutside = () => {
|
||||
this.setState({
|
||||
popoverOpen: false
|
||||
});
|
||||
if (this.state.popoverOpen) {
|
||||
this.setState({
|
||||
popoverOpen: false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
copyPermalink = () => {
|
||||
|
||||
Reference in New Issue
Block a user