I have tried notFoundContent={undefined} but it does not work. Is there any way else to solve this???
In order to hide dropdown when there is no data, you can use:
notFoundContent={null}
instead of:
notFoundContent={undefined}