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

Select搜索组件无法回显正确的title #8019

Open
1 task done
QAQandBBQ opened this issue Jan 16, 2025 · 1 comment
Open
1 task done

Select搜索组件无法回显正确的title #8019

QAQandBBQ opened this issue Jan 16, 2025 · 1 comment

Comments

@QAQandBBQ
Copy link

QAQandBBQ commented Jan 16, 2025

  • 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

@QAQandBBQ QAQandBBQ changed the title Select搜素组件无法回显正确的title Select搜索组件无法回显正确的title Jan 16, 2025
@QAQandBBQ
Copy link
Author

QAQandBBQ commented Jan 17, 2025

复现GIF

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