-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Dropdown] Dropdown组件可以支持visibleChange,或者onClose的事件回调吗? #6745
Comments
onChange ? |
onChange是dropdown值的变更回调,这里想要的是dropdown组件关闭时的回调或者显示状态切换的时候的回调 |
+1 |
同遇到问题 need help! |
+1 |
1 similar comment
+1 |
drop 下拉面板显示是判断 value 值. 所以当 onChange 返回 null 的时候就是关闭的回调了. 如果 value 又返回对应的 key 值, 就是一直在显示的状态 |
我的需求是关闭不同的 Dropdown 面板,会执行不同的操作逻辑。Dropdown 组件下的 onChange 方法可以实现这个功能,但是需要记录上次的 key 与当前 key 做对比,比较麻烦,能否在 Dropdown.Item 下增加类似 visibileChange 的回调 |
后续我们讨论一下,可以暂时先这么处理 |
Version of antd-mobile
5.37.1
What is this feature about?
RT, 方便做一些定制逻辑
The text was updated successfully, but these errors were encountered: