Skip to content

Commit 06e63c5

Browse files
Fix the arrow position (GH-114)
2 parents 97d0b56 + 1f317ff commit 06e63c5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.3.11",
2+
"version": "0.3.12",
33
"name": "antd-phone-input",
44
"description": "Advanced, highly customizable phone input component for Ant Design.",
55
"keywords": [

src/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,21 +242,21 @@ const PhoneInput = forwardRef(({
242242
value={selectValue}
243243
style={{display: "none"}}
244244
key={`${countryCode}_default`}
245-
label={<>
245+
label={<div style={{display: "flex"}}>
246246
<div className={`flag ${countryCode}`}/>
247247
{suffixIcon}
248-
</>}
248+
</div>}
249249
/>
250250
{countriesList.map(([iso, name, dial, pattern]) => {
251251
const mask = disableParentheses ? pattern.replace(/[()]/g, "") : pattern;
252252
return (
253253
<Select.Option
254254
value={iso + dial}
255255
key={`${iso}_${mask}`}
256-
label={<>
256+
label={<div style={{display: "flex"}}>
257257
<div className={`flag ${iso}`}/>
258258
{suffixIcon}
259-
</>}
259+
</div>}
260260
children={<div className={`${prefixCls}-phone-input-select-item`}>
261261
<div className={`flag ${iso}`}/>
262262
{countries[name]}&nbsp;{displayFormat(mask)}

0 commit comments

Comments
 (0)