I need to:
Implement a functionality wherein, if a modal is currently open, clicking on the backdrop/overlay or pressing the Escape (Esc) button will automatically close the modal.
So That:
Users can effortlessly manage popups, giving them a more intuitive and user-friendly interaction.
Acceptance Criteria
[✓] Modal should close when clicked on the overlay (Modal backdrop).
[✓] Modal should close when the Escape (Esc) button is pressed on the window.
[✓] Proper flow of props, refs, and using dependencies array to prevent unnecessary re-renders.
@abhinavkrin , I've implemented this feature and submitted a pull request. Please review it to see whether any change is required or can be merged if the change looks good.
As an EmbeddedChat developer
I need to: Implement a functionality wherein, if a modal is currently open, clicking on the backdrop/overlay or pressing the Escape (Esc) button will automatically close the modal.
So That: Users can effortlessly manage popups, giving them a more intuitive and user-friendly interaction.
Acceptance Criteria