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

[DropDown] 在 DropDown 中使用 Input,Input 的 onEnterPress 事件不生效 #1102

Closed
1 task done
YannLynn opened this issue Sep 6, 2022 · 0 comments · Fixed by #1103
Closed
1 task done

[DropDown] 在 DropDown 中使用 Input,Input 的 onEnterPress 事件不生效 #1102

YannLynn opened this issue Sep 6, 2022 · 0 comments · Fixed by #1103
Assignees
Labels
bug Something isn't working

Comments

@YannLynn
Copy link
Collaborator

YannLynn commented Sep 6, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

DropDown

Semi Version

latest

Current Behavior

在 DropDown 中使用 Input,Input 的 onEnterPress 事件不生效

Expected Behavior

在 DropDown 中使用 Input,Input 的 onEnterPress 事件生效

Steps To Reproduce

No response

ReproducibleCode

<Dropdown
                trigger={'focus'}
                position={'bottomLeft'}
                render={
                    <Dropdown.Menu tabIndex={-1}>
                        <Dropdown.Item>Menu Item 1</Dropdown.Item>
                        <Dropdown.Item>Menu Item 2</Dropdown.Item>
                        <Dropdown.Item>Menu Item 33</Dropdown.Item>
                    </Dropdown.Menu>
                }
            >
                <Input style={{ width: 120 }} placeholder="点击此处" onEnterPress={() => console.log('fjsdifo')} />
            </Dropdown>

Environment

- OS:
- browser:

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant