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

【Cascader】press Enter doesnt trigger onSelect #3242

Closed
MarvelSQ opened this issue Jun 14, 2023 · 0 comments · Fixed by #3246
Closed

【Cascader】press Enter doesnt trigger onSelect #3242

MarvelSQ opened this issue Jun 14, 2023 · 0 comments · Fixed by #3246

Comments

@MarvelSQ
Copy link
Member

What version of rsuite are you using?

5.35

What version of React are you using?

17.0.2

What version of TypeScript are you using (if any)?

No response

What browser are you using?

Chrome

Describe the Bug

<Cascader
  value={value?.value}
  onSelect={(item) => {
    setValue(item);
  }}
  data={data}
/>

onSelect not triggered when pressing Enter during search.

Expected Behavior

Value change should trigger onSelect.

To Reproduce

https://codesandbox.io/s/exciting-mayer-gnmqzx?file=/src/index.js

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

Successfully merging a pull request may close this issue.

2 participants