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

Console the output other than option select in autocomplete #18254

Closed
1 task done
renjiie opened this issue Aug 14, 2019 · 1 comment
Closed
1 task done

Console the output other than option select in autocomplete #18254

renjiie opened this issue Aug 14, 2019 · 1 comment
Assignees

Comments

@renjiie
Copy link

renjiie commented Aug 14, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Choose autocomplete from antd

What is expected?

Only the selected values from dropdown are getting logged in console with onSelect . The other typing inputs are not logged . onSearch is triggering on every input .

What is actually happening?

Only the selected values from dropdown are getting logged in console with onSelect . The other typing inputs are not logged . onSearch is triggering on every input .

Environment Info
antd 3.21.4
React 16.7
System Windows 10
Browser chrome 76.0.3809.100

How can I log the values on press enter or on click of search Icon

@afc163
Copy link
Member

afc163 commented Aug 14, 2019

Try onSelect over onSearch.

@afc163 afc163 closed this as completed Aug 14, 2019
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