Skip to content

Commit

Permalink
fix(blade): phone number input dropdown not opening (#2135)
Browse files Browse the repository at this point in the history
* fix(blade): phone number input dropdown not opening

* Create heavy-doors-impress.md
  • Loading branch information
anuraghazra authored Apr 22, 2024
1 parent 0aa2495 commit 2f0d96f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-doors-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@razorpay/blade": patch
---

fix(blade): phone number input dropdown not opening
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ const CountrySelector = ({
accessibilityLabel={`${countryNameFormatter.of(selectedCountry)} - Select Country`}
icon={isDropdownOpen ? ChevronUpIcon : ChevronDownIcon}
iconPosition="right"
// We need to prevent the click event from propagating to the BaseInputWrapper,
// Because the BaseInputWrapper is listening for click events to focus the input.
// We don't want that to happen when the user clicks on the dropdown button
// otherwise the dropdown will close immediately after opening
onClick={(e) => {
e.stopPropagation();
}}
>
{/* @ts-expect-error */}
<img
Expand Down

0 comments on commit 2f0d96f

Please sign in to comment.