Skip to content

Commit

Permalink
fix(date-picker): range panel onSelect should be triggered when panel…
Browse files Browse the repository at this point in the history
… not visible (#1856)
  • Loading branch information
sallerli1 committed Mar 4, 2024
1 parent fa02551 commit c82e28b
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -28,8 +28,12 @@ export function useRangePanelState(props: DateRangePanelProps, dateConfig: DateC

watch(
() => props.visible,
() => {
visible => {
setIsSelecting(false)

if (!visible) {
callEmit(props.onSelect, props.value)
}
},
)

Expand Down

0 comments on commit c82e28b

Please sign in to comment.