We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
notFoundContent
1 parent 72f64d3 commit fc134efCopy full SHA for fc134ef
development/src/ant-phone/index.tsx
@@ -219,7 +219,6 @@ const PhoneInput = forwardRef(({
219
}}
220
optionLabelProp="label"
221
dropdownStyle={{minWidth}}
222
- notFoundContent={searchNotFound}
223
onDropdownVisibleChange={onDropdownVisibleChange}
224
dropdownRender={(menu) => (
225
<div className={`${prefixCls}-phone-input-search-wrapper`}>
@@ -231,7 +230,9 @@ const PhoneInput = forwardRef(({
231
230
onInput={({target}: any) => setQuery(target.value)}
232
/>
233
)}
234
- {menu}
+ {countriesList.length ? menu : (
+ <div className="ant-select-item-empty">{searchNotFound}</div>
235
+ )}
236
</div>
237
238
>
0 commit comments