I have tried notFoundContent={undefined} but it does not work. Is there any way else to solve this???
Asked
Active
Viewed 1,106 times
1
-
1Can you provide us some code that you have written or any minimal example? – Hypermystic Oct 09 '22 at 17:07
-
@Hypermystic Hi bro! I've just updated image and I want to hide/remove that red rectangle. Can you help me??? – Nomad Oct 09 '22 at 17:47
-
@Nomad you may wanna use the `open` prop like [this](https://codesandbox.io/s/ji-ben-shi-yong-antd-4-21-7-forked-gnp4cy?file=/demo.js) example – simo54 Oct 09 '22 at 17:57
1 Answers
3
In order to hide dropdown when there is no data, you can use:
notFoundContent={null}
instead of:
notFoundContent={undefined}

Ahmet Emre Kilinc
- 5,489
- 12
- 30
- 42