Skip to content

Commit fc134ef

Browse files
committed
Replace notFoundContent property usage
1 parent 72f64d3 commit fc134ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

development/src/ant-phone/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ const PhoneInput = forwardRef(({
219219
}}
220220
optionLabelProp="label"
221221
dropdownStyle={{minWidth}}
222-
notFoundContent={searchNotFound}
223222
onDropdownVisibleChange={onDropdownVisibleChange}
224223
dropdownRender={(menu) => (
225224
<div className={`${prefixCls}-phone-input-search-wrapper`}>
@@ -231,7 +230,9 @@ const PhoneInput = forwardRef(({
231230
onInput={({target}: any) => setQuery(target.value)}
232231
/>
233232
)}
234-
{menu}
233+
{countriesList.length ? menu : (
234+
<div className="ant-select-item-empty">{searchNotFound}</div>
235+
)}
235236
</div>
236237
)}
237238
>

0 commit comments

Comments
 (0)