AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Close a Modal When You Hit Escape
This is something I ran into on my own Check out the elitics my check out is in a modem and You are typing in an input box that is focused on an imp on a modal and you hit escape. What should that do should that unfocus the input or should it close the modal? Right I think you I think at first it should unfocus and then it should close themodal But like who wants to have a modal accidentally closed while they're submitting their payment information That's exactly it. So I don't feel and like talking asking on Twitter I was like yeah, like the way you did is probably better than than what they're recommending.