At some previous point (I can't find the exact commit now, unfortunately), if the user entered text into one of the input widgets for Depicts or Captions on the File Page that had not been published, they would be prompted to confirm that they want to leave the page.
This worked the same as it did for normal wikitext pages – a native brower alert would appear if the user attempted to navigate to a new location. Below is a screenshot of the confirmation alert on a normal wikitext page for comparison.
The same behavior should happen if the user has entered text in the Depicts or Captions inputs and attempts to navigate away, but this is not currently the case. Instead, they are immediately taken to the new page.
Steps to reproduce:
- Go to a file page
- Toggle the Captions or Depicts panel into edit mode
- Enter some text into the input without clicking "Publish Changes"
- Attempt to navigate to another page.
The navigation will happen immediately, instead of showing the alert.