Skip to content

Commit

Permalink
Fix the arrow position (GH-114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomVancyan authored Dec 25, 2024
2 parents 97d0b56 + 1f317ff commit 06e63c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.11",
"version": "0.3.12",
"name": "antd-phone-input",
"description": "Advanced, highly customizable phone input component for Ant Design.",
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,21 +242,21 @@ const PhoneInput = forwardRef(({
value={selectValue}
style={{display: "none"}}
key={`${countryCode}_default`}
label={<>
label={<div style={{display: "flex"}}>
<div className={`flag ${countryCode}`}/>
{suffixIcon}
</>}
</div>}
/>
{countriesList.map(([iso, name, dial, pattern]) => {
const mask = disableParentheses ? pattern.replace(/[()]/g, "") : pattern;
return (
<Select.Option
value={iso + dial}
key={`${iso}_${mask}`}
label={<>
label={<div style={{display: "flex"}}>
<div className={`flag ${iso}`}/>
{suffixIcon}
</>}
</div>}
children={<div className={`${prefixCls}-phone-input-select-item`}>
<div className={`flag ${iso}`}/>
{countries[name]}&nbsp;{displayFormat(mask)}
Expand Down

0 comments on commit 06e63c5

Please sign in to comment.