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] When using the search event, after remotely obtaining the drop-down data selection option, the search will be triggered again, and the parameter carried this time is an empty string #5537

Closed
1 task
youuss opened this issue Apr 22, 2022 · 1 comment
Labels

Comments

@youuss
Copy link

youuss commented Apr 22, 2022

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

Version

3.2.0

Environment

vue 3.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. select中输入hi,等待下拉选项出现
  2. 观察console中输出hi,随意选择一个选择项
  3. 继续观察console中输出``, 空字符串,说明search在select之后又被触发一次,同时再次获取了一次新的下拉选项数据

image

What is expected?

使用search事件时,远程获取下拉数据选择选项之后,search不会被再次触发

What is actually happening?

使用search事件时,远程获取下拉数据选择选项之后,search又会被触发一次,而且此次所携带的参数为空字符串再次获取了一次新的下拉选项数据。在业务中我需要用远程的数据进行逻辑判断,因为这次search的错误触发导致远程数据刷新会使逻辑无法判断

@github-actions github-actions bot changed the title [select] 使用search事件时,远程获取下拉数据选择选项之后,search又会被触发一次,而且此次所携带的参数为空字符串 [select] When using the search event, after remotely obtaining the drop-down data selection option, the search will be triggered again, and the parameter carried this time is an empty string Apr 22, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant