Skip to content

Commit 131c367

Browse files
authored
Appending the countries dropdown to body to prevent it being clipped (#5599)
1 parent b447222 commit 131c367

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

changelog/fix-phone-input-dropdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fix
3+
4+
Appending the countries dropdown to body to prevent it being clipped

client/settings/phone-input/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const PhoneNumberInput = ( {
7777
separateDialCode: true,
7878
hiddenInput: 'full',
7979
utilsScript: utils,
80+
dropdownContainer: document.body,
8081
} );
8182
setInputInstance( iti );
8283

client/settings/phone-input/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@
127127
.iti {
128128
width: 100%;
129129
margin-top: $gap-large;
130+
131+
&--container {
132+
margin-top: 0;
133+
}
130134
}
131135

132136
.no-top-margin .iti {

0 commit comments

Comments
 (0)