Fix for modals not reacting to the Esc key & for file input field not gaining focus#1768
Fix for modals not reacting to the Esc key & for file input field not gaining focus#1768ArtOfCode- merged 3 commits intodevelopfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
On a post draft, I tested the image and link buttons. The image file has focus (so you don't need the mouse), and escape closes both modals. If you didn't mean to close a link modal, I see that your previous typing is still there if you choose it again, and only on that post (other posts start fresh) -- all expected behavior.
I'm not sure what other modals are affected. I didn't observe any differences with close or flag operations. I suppose "modal" means "thing that seems to pop over your screen and take control"? I can't think of others of those off hand; happy to test if someone reminds me where.
closes #1611
2 fixes:
ssr-2025-08-09_00.11.13.mp4