Skip to content

Commit 0f9c80b

Browse files
authored
fix: rangePick onOk can't close the panel (#7026)
1 parent 61e5746 commit 0f9c80b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/vc-picker/utils/getRanges.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ export default function getRanges({
4040

4141
okNode = needConfirmButton && (
4242
<li class={`${prefixCls}-ok`}>
43-
<Button disabled={okDisabled} onClick={onOk}>
43+
<Button
44+
disabled={okDisabled}
45+
onClick={e => {
46+
e.stopPropagation();
47+
onOk && onOk();
48+
}}
49+
>
4450
{locale.ok}
4551
</Button>
4652
</li>

0 commit comments

Comments
 (0)