You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Dropdown component with selection & search enabled, I want to be able to pass a React component as a noResultMessage to allow for links. This works as expected (it displays fine), but results in proptype warning in the console.
NOTE: - Same as #1664, only for other component (Dropdown instead of Search).
Expected Result
No warning in console
Actual Result
Failed prop type: Invalid prop noResultsMessage of type object supplied to Dropdown, expected string.
Thanks for the suggestion, but that unfortunately does not solve my problem. I'm not trying to add an option to the existing ones, rather, I would like to add a link which would lead me to another form, where that data could be entered manually. So the noResultsMessage is the actual prop I need, only it doesn't support React components as value at the moment. Actually, it works, but triggers a warning in the console. Thanks for the suggestion anyway. 😃
Steps
When using the
Dropdown
component withselection
&search
enabled, I want to be able to pass a React component as anoResultMessage
to allow for links. This works as expected (it displays fine), but results in proptype warning in the console.NOTE: - Same as #1664, only for other component (
Dropdown
instead ofSearch
).Expected Result
No warning in console
Actual Result
Failed prop type: Invalid prop
noResultsMessage
of typeobject
supplied toDropdown
, expectedstring
.Version
0.77.1
Testcase
The text was updated successfully, but these errors were encountered: