Skip to content

Commit

Permalink
Replace notFoundContent property usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomVancyan committed Oct 7, 2024
1 parent 72f64d3 commit fc134ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions development/src/ant-phone/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ const PhoneInput = forwardRef(({
}}
optionLabelProp="label"
dropdownStyle={{minWidth}}
notFoundContent={searchNotFound}
onDropdownVisibleChange={onDropdownVisibleChange}
dropdownRender={(menu) => (
<div className={`${prefixCls}-phone-input-search-wrapper`}>
Expand All @@ -231,7 +230,9 @@ const PhoneInput = forwardRef(({
onInput={({target}: any) => setQuery(target.value)}
/>
)}
{menu}
{countriesList.length ? menu : (
<div className="ant-select-item-empty">{searchNotFound}</div>
)}
</div>
)}
>
Expand Down

0 comments on commit fc134ef

Please sign in to comment.