Mochi

Unexpected "Discard changes?" Dialog (Checkbox Field Related)

Hi there,

An unexpected "Discard changes?" dialog appears when navigating away from a newly created card—even if no changes were made. This is quite inconvenient, especially since the app automatically transitions to the next card creation screen after saving a new card.

This issue is specifically triggered by checkbox fields in templates.

Here's a summary of the observed behavior:

  • When a template has no checkbox fields, this issue does not occur.
  • Adding a checkbox field (with its default state "Unchecked") to a template still does not trigger the issue.
  • However, once the default state of a checkbox field is changed to "Checked" and the template is saved, the "Discard changes?" dialog starts to appear consistently when navigating away from a new card creation screen, regardless of whether any changes were made.
  • Interestingly, merely changing the default state back to "Unchecked" in the template editor does NOT resolve the issue; the dialog continues to appear. This observation suggests an internal state or flag remains active once a checkbox field has had its default set to "Checked."
  • The only known way to stop this behavior for a template is to change the checkbox field's type to a different one (e.g., "Text").

Mochi App Version and Environment: 1.19.1 (Vivaldi Browser)

Video Demonstration: Here's a video recording demonstrating the reproduction steps and observed behaviors, including the persistence and the resolution by changing field type: https://drive.proton.me/urls/V7YTP4G7DR#eXDN3g4wlNJO

Hope this helps! Thanks in advance!