Skip to content

Commit 858c4ec

Browse files
fix bug:#6911 a-range-picker canot close when set popContainer (#6994)
* fix bug:#6911 a-range-picker 组件选择完之后下拉面板无法收起的问题 * update prettier to 3.0.3 * Update package.json * Update package.json --------- Co-authored-by: tangjinzhou <[email protected]>
1 parent 77eab36 commit 858c4ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/vc-picker/panels/PanelBody.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ function PanelBody<DateType>(_props: PanelBodyProps<DateType>) {
9393
(picker === 'year' && Number(title) % 10 === 9),
9494
...getCellClassName(currentDate),
9595
})}
96-
onClick={() => {
96+
onClick={e => {
97+
e.stopPropagation();
9798
if (!disabled) {
9899
onSelect(currentDate);
99100
}

0 commit comments

Comments
 (0)