Closed tewarig closed 4 days ago
Latest commit: e13f6ddd779bbfe8333c58b2a8ca8f720bfb6989
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
✅ PR title follows Conventional Commits specification.
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit e13f6ddd779bbfe8333c58b2a8ca8f720bfb6989:
Sandbox | Source |
---|---|
razorpay/blade: basic | Configuration |
Generated by :no_entry_sign: dangerJS against e13f6ddd779bbfe8333c58b2a8ca8f720bfb6989
Description
bug - https://github.com/user-attachments/assets/a135e5a2-e283-466e-b58d-76785ed0e10b
RCA - Let’s say we currently have a structure like this:
We added onClick listeners to both Input and TriggerElement. However, if the user clicks on the backdrop of TriggerElement (in cases where TriggerElement doesn’t occupy the full space), nothing gets triggered. This was causing the issue.
Changes
We added an additional prop, onBackdropClick, which is applied to the wrapper. This ensures that when a user clicks on the backdrop, we can decide what action needs to be taken.
Now -
https://github.com/user-attachments/assets/10dbbdaa-611f-491c-a3a9-c38cc7f808ea
Additional Information
Component Checklist