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

能否去掉 onBlur 的默认行为: 添加 tag? #952

Open
vaynevayne opened this issue Jun 12, 2023 · 0 comments
Open

能否去掉 onBlur 的默认行为: 添加 tag? #952

vaynevayne opened this issue Jun 12, 2023 · 0 comments

Comments

@vaynevayne
Copy link

vaynevayne commented Jun 12, 2023

onBlur 的默认行为太多了, 自定义 dorpdown 基本无法使用
比如:

  1. toggleOpen(false) , 导致无法使用内嵌 modal
  2. clearSearchValue(''), 导致无法在自定义 DorndpwnRender内部修改去切换 mode, 因为tag 模式下, blur 会视为添加到 options, 导致切换到其他的 mode 会额外多出这个 option,切换一次多一次
    @afc163

一个函数应该只做一件事情, 不要加太多自己的默认行为进去却不提供撤销方式

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