I’m not sure if this is expected functionality but here it goes:
Bug Description:
- Back button function doesn’t work as expected after pressing cancel on forms.
Expected behavior:
- Pressing the back button should return to ‘screens’, not overlay forms.
How to replicate:
- Create a ‘new form’ action.
- When the new form appears, click “Cancel”
- Navigate back (using back on the phone / tablet / browser / etc)
- Observe that it navigates back to the cancelled form overlay instead of previous screen.
Details:
It appears that ‘back’ function simply goes to the previous step in the history.
[Screen 1] → <Press ‘New Form Action’ from Screen 1> → [Screen 2: New Form Overlay shows] → <Press ‘Cancel’ in Screen 2> → [Screen 1] → → [Screen 2: New Form Overlay]
What would be desired is, since the user decided to cancel the new form, remove the [Screen 2: New Form Overlay] from the history so it can never be returned to, since it was cancelled.
[Screen 1] → <Press ‘New Form Action’ from Screen 1> → [Screen 2: New Form Overlay shows] → <Press ‘Cancel’ in Screen 2> → [Screen 1] → → [Screen 1]
Suggested Solution:
If a form is displayed as “Slide in” or “Overlay”, if the user presses ‘Cancel’ on the form, a back button press should never return to the cancelled form.
If a form is displayed as “Current” or “Main”, if the user presses cancel on the form, a back button press can return to the cancelled form.