Skip to content

Commit

Permalink
fix: rangePick onOk can't close the panel (#7026)
Browse files Browse the repository at this point in the history
  • Loading branch information
DesignHhuang authored Oct 17, 2023
1 parent 61e5746 commit 0f9c80b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/vc-picker/utils/getRanges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ export default function getRanges({

okNode = needConfirmButton && (
<li class={`${prefixCls}-ok`}>
<Button disabled={okDisabled} onClick={onOk}>
<Button
disabled={okDisabled}
onClick={e => {
e.stopPropagation();
onOk && onOk();
}}
>
{locale.ok}
</Button>
</li>
Expand Down

0 comments on commit 0f9c80b

Please sign in to comment.