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
As described in the title, if searchText === '', pressing Enter in the text field doesn't call onNewRequest. This is rather problematic as many use cases include clearing the search if the user deletes the whole search value and submit.
Link to minimal working code that reproduces the issue
<AutoCompletefloatingLabelText="Search"searchText={searchInput}onUpdateInput={updateSearch}onNewRequest={console.log}// Does not trigger when the value of searchText is ''dataSource={[]}/>
Versions
Material-UI: ^0.17.1,
React: 15.4.1
Browser: Chrome Version 57.0.2987.133 (64-bit) (OS X)
The text was updated successfully, but these errors were encountered:
Problem description
As described in the title, if
searchText === ''
, pressingEnter
in the text field doesn't callonNewRequest
. This is rather problematic as many use cases include clearing the search if the user deletes the whole search value and submit.Link to minimal working code that reproduces the issue
Versions
The text was updated successfully, but these errors were encountered: