LemmyNet / jerboa

A native android app for Lemmy
GNU Affero General Public License v3.0
1.15k stars 167 forks source link

Closing and opening multiple spoiler tags works incorrectly #1577

Closed Tyoda closed 4 days ago

Tyoda commented 1 week ago

Jerboa Version

0.0.69

Android Version + Phone

Android 11 / Redmi Note 8T

Describe The Bug

When a post has multiple spoiler tags, opening them in order will not render correctly. It renders correctly if opened bottom to top.

This is flipped for closing, where closing them in order works, and bottom to top does not.

When I open the first one and then the second one:

When I open the second one and then the first one:

Same happens in the post preview while posting.

As seen in this post: https://lemmy.ml/post/17579992

To Reproduce

  1. Open post or comment that has multiple spoiler tags (https://lemmy.ml/post/17579992)
  2. Open first spoiler tag
  3. Open second spoiler tag
  4. Spoiler tags are rendered incorrectly until post is refreshed

In the case of a crash or when relevant include the logs

No response

Tyoda commented 5 days ago

What a mess! Was just figuring out git & GitHub signing and other stuff.

The pull request fixes this issue.