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

Clicking an element from the TypeaheadList not firing while showOptionsWhenEmpty #223

Open
raduchiriac opened this issue Nov 23, 2016 · 2 comments

Comments

@raduchiriac
Copy link

raduchiriac commented Nov 23, 2016

I am using [email protected] with showOptionsWhenEmpty={true}.

<Typeahead
        options={ this.props.availableSites }
        filterOption='name'
        displayOption='name'
        placeholder='Votre site...'
        onOptionSelected={this.onOptionSelected}
        ref='siteBox'
        value={this.state.nameSiteSelected}
        inputProps={{
             style: S.typeahead.typeaheadInput
        }}
        customListComponent={ UI.TypeaheadList }
        showOptionsWhenEmpty={ true }
/>

When I focus my Typeahead, the three elements are displayed but clicking on any of them does not fire the onOptionSelected.

Only if I start typing in and select one of the results would work.

@AntiPaste
Copy link

Workaround: change the onClick of the TypeaheadOption to onMouseDown.

@sushilnykaa
Copy link

Click on option not triggering the onOptionSelected, its weired its a basic features and its still open?

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

3 participants