Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing close (or default behaviour in general) #33

Open
kujon opened this issue Mar 22, 2016 · 0 comments
Open

Preventing close (or default behaviour in general) #33

kujon opened this issue Mar 22, 2016 · 0 comments

Comments

@kujon
Copy link

kujon commented Mar 22, 2016

First of all - this component is royal awesomeness. Configurability is way beyond anything else.

I've got a slight issue, though: I'm using it for a quick entry mechanism - think freehand text turned into structured data upon selection. When each word is being typed, we're going to give you suggestions as to what it might be (based on what property of the structured data we think you are specifying atm). So, I'd like to be able to select a suggestion and continue typing without dropdown closing down on me. Currently, there's no way to prevent it from closing.

There are 2 solutions that crop into my mind:

  1. event.preventDefault() - pros: the component itself will continue handling open/close state, which makes development a breeze. cons: jQuery-like not react-like.
  2. Make open/close a controlled property - pros: achieve whatever you'd like. cons: much more hassle to get up and running.

Or maybe there's already a configuration and I'm simply missing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant