fix: rangePick onOk can't close the panel (#7026)
parent
61e5746b0d
commit
0f9c80b86e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue