Skip to content

Commit

Permalink
fix: spoiler hidden link click (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura authored Apr 16, 2023
1 parent dcad184 commit da92ce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/organisms/room/RoomViewContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function handleOnClickCapture(e) {

const spoiler = nativeEvent.composedPath().find((el) => el?.hasAttribute?.('data-mx-spoiler'));
if (spoiler) {
if (!spoiler.classList.contains('data-mx-spoiler--visible')) e.preventDefault();
spoiler.classList.toggle('data-mx-spoiler--visible');
}
}
Expand Down

0 comments on commit da92ce3

Please sign in to comment.