Fix spolier click not working on some browser
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
d6b5f92d6c
commit
7c368ae029
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ function handleOnClickCapture(e) {
|
||||||
openProfileViewer(userId, roomId);
|
openProfileViewer(userId, roomId);
|
||||||
}
|
}
|
||||||
|
|
||||||
const spoiler = nativeEvent.path.find((el) => el?.hasAttribute?.('data-mx-spoiler'));
|
const spoiler = nativeEvent.composedPath().find((el) => el?.hasAttribute?.('data-mx-spoiler'));
|
||||||
if (spoiler) {
|
if (spoiler) {
|
||||||
spoiler.classList.toggle('data-mx-spoiler--visible');
|
spoiler.classList.toggle('data-mx-spoiler--visible');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue