Fix rebase changes
This commit is contained in:
parent
8a68557799
commit
c288cfef94
1 changed files with 1 additions and 4 deletions
|
|
@ -25,16 +25,13 @@ class PostModal extends React.Component {
|
|||
if (this.readTimer) {
|
||||
clearTimeout(this.readTimer);
|
||||
}
|
||||
}
|
||||
|
||||
modalListener = (e) => {
|
||||
const targetClassName = e.target.className;
|
||||
this.readTimer = null;
|
||||
|
||||
window.removeEventListener('click', this.modalListener);
|
||||
}
|
||||
|
||||
modalListener(e) {
|
||||
modalListener = (e) => {
|
||||
const targetClassName = e.target.className;
|
||||
|
||||
if (this.props.post && targetClassName == 'modal post-modal') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue