On clicking items, onNewRequest does not get triggered. This is the case even on the documentation page. ENTER button seems to be working.
Thanks
Also with 0.14.4 and 0.14.0
The examples seem to work on the documentation page: http://www.material-ui.com/#/components/auto-complete for V0.14.4. However, none of them works in V0.15.0-alpha.1.
I'm experiencing it as well in my project but the documentation examples works fine for me. It's very strange because the click handler inside the autocomplete component sometimes gets called and sometimes not, without any reason apparently.
Same. Is there a workaround or fix?
Also for some reason the event is fired immediately.
It currently only works if you use the arrows. Which currently are buggy too. So you press arrow down twice, enter to pick, and then it'll trigger the function.
Is this bug still exist?
I can't reproduce it from the latest version.
@suhail-ansari-apconic
I had the same issue on alpha1, but similar with yongxu, it's no longer reproducible on alpha2
Thanks for the status update.
I'm having this issue in 0.15.1.
The field is inside a Dialog, and it doesn't work when I select an item, none event is fired.
I'm having this issue in 0.15.1 When I click a suggestion from autocomplete I cannot get the event to fire. If I press enter it does work
<AutoComplete hintText="Search for a patient"
filter={AutoComplete.fuzzyFilter}
dataSource={names}
maxSearchResults={5}
fullWidth={true}
onUpdateInput={this.autoCompleteUpdate.bind(this)}
onNewRequest={(s,i)=>{console.log(i)} /* only works when enter is pressed */ }
/>
just had this issue, but what fixed it for me was I had forgotten to include:
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
Most helpful comment
just had this issue, but what fixed it for me was I had forgotten to include:
import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin();