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

[Component] [autocomplete] Autodcomplete 自动补全输入框失去焦点的时候没有触发 blur方法 #9183

Closed
wangzhaoqiang666 opened this issue Aug 3, 2022 · 4 comments · Fixed by #10091

Comments

@wangzhaoqiang666
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.2.12
  • Browser / OS: chrome 103.0.5060.114 windows 10
  • Build Tool: Vite

Reproduction

Related Component

  • el-autocomplete

Reproduction Link

Element Plus Playground

Steps to reproduce

打开控制台,输入框输入内容后让其失去焦点,blur方法没有触发

What is Expected?

输入框失去焦点时,blur方法触发成功

What is actually happening?

没有触发

Additional comments

(empty)

@buqiyuan
Copy link
Member

buqiyuan commented Aug 4, 2022

@tolking related to #8350

@sxzz sxzz closed this as completed Sep 3, 2022
@HWYD
Copy link

HWYD commented Sep 27, 2022

还是会出现这个问题,点击组件外面,想触发blur事件但是无效

@tolking tolking reopened this Sep 27, 2022
@faga295
Copy link
Contributor

faga295 commented Oct 12, 2022

It looks like it's because of the ignoreFocusEvent, is this a feature or a bug?

@litt1e-p
Copy link

same +1

tolking added a commit that referenced this issue Mar 1, 2023
* fix(components): [autocomplete] the blur event is not triggered

closed #9183

* test(components): [autocomplete] add event:focus

* test(components): [autocomplete] add event:focus

* refactor(components): [autocomplete] optimize code
loosheng pushed a commit to loosheng/element-plus that referenced this issue Mar 26, 2023
…ent-plus#10091)

* fix(components): [autocomplete] the blur event is not triggered

closed element-plus#9183

* test(components): [autocomplete] add event:focus

* test(components): [autocomplete] add event:focus

* refactor(components): [autocomplete] optimize code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants