Currently when the user is in the "pick a sentence step" (T251551) to select a sentence to translate, clicking on an image causes the browser to navigate away:
This ticket proposes to prevent such navigation. Clicking on an image should select their caption text for translation. If that is complex to support, at least prevent the outside navigation.
Steps to reproduce:
- Translate "Moon" from English to Spanish in the test instance
- Select "In culture" section and start the translation.
- Optionally, add some sentence to the translation.
- Click on an image.
- Observe that the warning to leave the translation is shown. Or if you had not added any contents, the browser navigates to the image page leaving the translation.
Expected result: the browser does not try to leave the page and the caption of that image is selected.