element-plus [Component] [color-picker, select] Select and color when event change can not focus input

y4ekin9u  于 5个月前  发布在  其他
关注(0)|答案(3)|浏览(155)

Bug Type: Component

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.2.25
  • Browser / OS: macos
  • Build Tool: Vite

Reproduction

  • el-color-picker
  • el-select

CodeSandbox

Steps to reproduce

this.$refs.$el.querySelector('input').focus()

What is Expected?

fix it please

What is actually happening?

fix it please

Additional comments

(empty)

hmae6n7t

hmae6n7t1#

Hello @appxq. Please provide an online reproduction demo by clicking this link or a minimal GitHub repository. Issues marked with need reproduction will be closed if they have no activity within 3 days.

你好 @appxq, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。可以通过点击 此处 创建或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

voj3qocg

voj3qocg2#

Because after the change event, there are events such as closing options, you can consider using nextTIck or setTimeout and combining visible-change , all of which are achievable.

kgqe7b3p

kgqe7b3p3#

ok. setTimeout it work ในวันที่ พ. 30 พ.ย. 2022 เวลา 19:11 Xc ***@***.***> เขียนว่า:…

Because after the change event, there are events such as closing options, you can consider using nextTIck or setTimeout and combining visible-change, all of which are achievable. — Reply to this email directly, view it on GitHub <#10835 (comment)>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AC6OAR23W6K3FJAI25N3DZLWK476FANCNFSM6AAAAAASPOEDSE > . You are receiving this because you were mentioned.Message ID: ***@***.***>

-- APPLICATION EXECUTEwww.AppXQ.com © 2010 AppXQ Email: @***. Tel. 086-8682300

相关问题