-
Notifications
You must be signed in to change notification settings - Fork 530
[added] passed through event to onSelect prop callback #87
base: master
Are you sure you want to change the base?
Conversation
618a7e6
to
7cd30ea
Compare
we have a current release candidate rc1 - might be worth going ahead and being consisted with the prop ordering since that release candidate is a breaking change anyways. |
I agree - it sounds like there will be quite a few breaking changes so I suppose now is the time to do it "the right way" :) |
Yeah I can revise it if that is what we want to do. No worries |
Preventing form submission when selecting an item in the menu with I'm not sure exposing
|
Is there any way other to prevent form submission when the enter button is pressed? It basically defeats the purpose of having |
The |
What's the status/holdup on this change? I could really use the additional I also welcome the onFocus and onBlur callbacks as well. This PR looks pretty good to me and would love to see it merged. Thoughts? To give more context, I'm using Autocomplete as a global search box in which clicking an item routes to a URL for displaying/editing that particular item. I'd like to enable metaKey clicking to allow new tabs to open for convenience when editing multiple items. |
Is there any updates for this API? I extremely need |
I added the event as the last prop, which breaks convention (onChange passes the event as the first prop) but keeps the interface backwards compatible. The main reason for this change is that preventDefault is needed when the autocomplete is within a form if submission is not desired. Otherwise the form will submit when enter is pressed to select an item from the autocomplete list.