fix: rangePick onOk can't close the panel (#7026)

pull/7033/head
黄小民 2023-10-17 19:02:10 +08:00 committed by GitHub
parent 61e5746b0d
commit 0f9c80b86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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>