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 <415800467@qq.com>
pull/7025/head
黄小民 2023-10-16 11:42:55 +08:00 committed by GitHub
parent 77eab3637c
commit 858c4ec409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ function PanelBody<DateType>(_props: PanelBodyProps<DateType>) {
(picker === 'year' && Number(title) % 10 === 9),
...getCellClassName(currentDate),
})}
onClick={() => {
onClick={e => {
e.stopPropagation();
if (!disabled) {
onSelect(currentDate);
}