我的需求是关闭不同的 Dropdown 面板,会执行不同的操作逻辑。Dropdown 组件下的 onChange 方法可以实现这个功能,但是需要记录上次的 key 与当前 key 做对比,比较麻烦,能否在 Dropdown.Item 下增加类似 visibileChange 的回调 后续我们讨论一下,可以暂时先这么处理...
[Dropdown] Dropdown组件可以支持visibleChange,或者onClose的事件回调吗? #2871 Sign in to view logs Summary Jobs issue-remove-inactive Run details Usage Workflow file Triggered via issue November 10, 2024 17:41 Layouwen commented on #6745 f71756a Status Success Total duration 8s Artifacts – ...
2023-04-23 [antd: Dropdown] `onVisibleChange` is deprecated which will be removed in next major version, please use `onOpenChange` instead. 如果你的antd版本大于4.23.0,那么你就要把onVisibleChange改为onOpenChange。 影响组件:Dropdown
handleDropdownVisibleChange=(open:boolean)=>{ this.setState({open}); const{onDropdownVisibleChange}=this.props; if(onDropdownVisibleChange){ onDropdownVisibleChange(open); } }; handleBlur=()=>{ 1 change: 1 addition & 0 deletions1src/tree-select/index.mdx ...
Environment(required) antd version: 1.7.1 OS and its version: mac os 10.12.3 Browser and its version: chrome 56.0.2924.87 What did you do? Please provide steps to re-produce your problem. just add a dropdown component, and listenonVisibleChangeevent ...
Issue Reply [Dropdown] Dropdown组件可以支持visibleChange,或者onClose的事件回调吗? #493 Sign in to view logs Summary Jobs issue-reply Run details Usage Workflow file Triggered via issue September 9, 2024 09:39 ppYoung labeled #6745 b805b5a Status Success ...
Issue Remove Inactive [Dropdown] Dropdown组件可以支持visibleChange,或者onClose的事件回调吗? #2882 Sign in to view logs Summary Jobs issue-remove-inactive Run details Usage Workflow file Triggered via issue November 11, 2024 08:48 OreoLover commented on #6745 5744123 Status Success ...