mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Previously, canceling an upload in preview mode & returning to editing left the syntax unchanged (e.g., still showing "Uploading"). This happened because the `replaceFieldText` function does not work when the text area's display is none. To fix this, instead of hiding the textarea in preview mode, we use a grid to overlap it with the preview container. This is the same thing we are doing in the compose box. We have also added css to ensure the textarea remains hidden behind the transparent preview container in preview mode.