Skip to content

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

@YyumeiZhang

Description

@YyumeiZhang

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions