Hi Mochi team,
After a recent update, I noticed an issue with collapsible sections (<details> and <summary>) during flashcard reviews.
I use Mochi for learning English. My flashcards are structured to support active recall through several levels of assistance:
- An English definition.
- An optional collapsible translation hint.
- Example sentences with hidden words (cloze deletions).
- The answer on the reverse side of the card.
Expected behavior
Clicking the arrow next to the translation hint should expand only that section. The cloze deletions and the reverse side of the card should remain hidden.
Actual behavior
Clicking the arrow expands the translation hint but also reveals the next cloze deletion. If "Type hidden text" is enabled, it reveals the reverse side of the card instead.
This makes it impossible to use the translation as an independent hint without accidentally revealing the answer.
Steps to reproduce
- Create a flashcard containing a collapsible
<details>section and cloze deletions. - Start a review session.
- Click or tap the
<summary>element to expand the hint. - Observe that the next hidden element is also revealed.
Additional information
- The issue occurs on mobile, desktop, and web.
- Enabling "Type hidden text" does not resolve the issue.
- Enabling "Display a button to reveal next side" does not resolve the issue.
- This workflow previously worked as expected.
Suggested fix
Please prevent interactions with <details> and <summary> elements from triggering the card's tap-to-reveal action.
Alternatively, please consider adding a setting to disable tap-to-reveal behavior.
I really appreciate Mochi's flexibility and Markdown support. Independent collapsible hints are an important part of my language-learning workflow.