palantir/blueprint
GitHub で見るSuggest Component should have an easy way to prevent an empty menu from showing.
Open
#3,425 opened on 2019年3月16日
P2Package: selectType: bughelp wanted
説明
Hey @giladgray @adidahiya

In the above image I have a <Suggest/> with the prop
initialContent={null}
Instead of showing the weird little empty menu, I'd rather not show anything. There doesn't seem to be an easy way to do this besides implementing an entire itemListRenderer override. I think that passing initialContent={null} should completely hide the Menu.
To do that all that would seemingly need to change is here:
If we added the this
if (menuContent === null && createItemView === null) {
return null
}
to the next line then that weird empty menu wouldn't show up.