Fix rebase changes
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/tests Pipeline was successful

This commit is contained in:
Sonny Bakker 2025-03-27 21:54:48 +01:00
parent 8a68557799
commit c288cfef94

View file

@ -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') {