Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Storytelling Tool UI
-
Labels:None
Description
In the SJRK-289 development branch, a bug has been introduced that causes media blocks (i.e. all but text blocks) to break when a text value is altered (e.g. heading, alt text, description). This seems to go away when the uploadState-to-visibility model relay is commented out, but that relay is needed to hide and show elements related to file uploading.
To reproduce
- Check out the
SJRK-289branch at commit dc3674af113dffeb2df5c4001e58bb4027cf97f4 - Start the server via docker-compose or run the Node server directly in your environment, making sure the database server is running
- Go to http://localhost:8081/storyEdit.html
- Click "Add an image block"
- Click on the "Block heading" input field of the new image block
- Type in any value
- Click away or defocus from the input field
Expected
The value remains in the field and nothing untoward happens, especially nothing to do with the file upload
Actual
The block's file upload progress indicator and error message text (without an accompanying error message) are shown, and the image placeholder is hidden. Please see the attached screenshot for an example of the result. This also breaks the blockUi by setting its storyId field to "null" (its initial state) and sets the uploadState to a value other than "ready", which prevents navigating to the story preview.