8000 Select搜索组件无法回显正确的title · Issue #8019 · vueComponent/ant-design-vue · GitHub
[go: up one dir, main page]

Skip to content
Select搜索组件无法回显正确的title #8019
Open
@QAQandBBQ

Description

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

Version

4.2.6

Environment

macOS Monterey 12.7.6,Chrome 131.0.6778.205,vue@3.2

Reproduction link

https://www.antdv.com/components/select-cn#components-select-demo-search

Steps to reproduce

复现步骤

  1. 在Select可搜索的input内;
  2. 切换到中文输入法;
  3. 输入中文拼音后保持不动(即在onCompositionStart和onCompositionEnd之间);
  4. 将鼠标移入到Options Item中(为了触发render),即可复现。

复现GIF

  • 具体复现视频

What is expected?

能够正常回显
简单的看了一下源码,应该是因为Selector/index.tsx中的compositionStatus判断错误导致的,理解可以在blur的时候重置一下该状态。

What is actually happening?

无法正确回显已选值的title

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0