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

[BUG] Select 在 autoFocus 状态下,在未手动点击面板情况下,键盘输入搜索内容,面板未打开 #2686

Open
1 task done
YyumeiZhang opened this issue Jan 24, 2025 · 0 comments

Comments

@YyumeiZhang
Copy link
Collaborator

YyumeiZhang commented Jan 24, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Select

Semi Version

2.73.0

Current Behavior

可以看到,在第一次输入搜索内容时候,没有看到搜索结果。在点击 trigger 后,第二次输入搜索内容时候,面板有结果
Image

Expected Behavior

autoFocus 自动聚焦时候,在没有任何点击操作情况下,输入搜索内容,面板显示搜索结果

Steps To Reproduce

No response

ReproducibleCode

import React from 'react';
import { Select } from '@douyinfe/semi-ui';

() => (
    <>
        <Select autoFocus filter style={{ width: 180 }} placeholder="带搜索功能的单选">
            <Select.Option value="douyin">douyyin</Select.Option>
            <Select.Option value="ulikecam">轻颜相机</Select.Option>
            <Select.Option value="jianying">剪映</Select.Option>
            <Select.Option value="xigua">西瓜视频</Select.Option>
        </Select>
        <br />
    </>
);

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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant