Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker in Popover #21778

Closed
1 task done
la99er opened this issue Mar 2, 2020 · 8 comments
Closed
1 task done

DatePicker in Popover #21778

la99er opened this issue Mar 2, 2020 · 8 comments

Comments

@la99er
Copy link

la99er commented Mar 2, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • Click on the Button
  • Set a Date in the DatePicker.
  • Clear the DatePicker

What is expected?

The DatePicker should be cleared and the popover should still be open.

What is actually happening?

The DatePicker is getting cleared, but the popover does close itself.

Environment Info
antd 4.0.0
React 16.12.0
System Arch Linux
Browser Firefox 73.0 (64-bit) & Chrome 80.0.3987.106

This issue seems to be related, but was closed: #20649
Thus I was not sure if creating a new ticket is the right way to report this issue. I hope the way I did it is okay!
Many thanks in advance!

@afc163 afc163 closed this as completed Mar 2, 2020
@la99er
Copy link
Author

la99er commented Mar 9, 2020

That does not solve my problem. The popover still closes itself when I clear the date time. If it is an easy fix, could you please adjust my example, so that the popover does not close itself by clearing the date?

@la99er
Copy link
Author

la99er commented Mar 9, 2020

My issue is fixed in v4.0.2
Thanks for your support! :)

@wangcherry
Copy link

My issue is fixed in v4.0.2
Thanks for your support! :)

antd v4.0.4
select是可以生效的,但是RangePicker不生效

image
image

@dpyzo0o
Copy link

dpyzo0o commented Jul 28, 2020

My issue is fixed in v4.0.2
Thanks for your support! :)

antd v4.0.4
select是可以生效的,但是RangePicker不生效

image
image

同样的问题,select 生效,rangepicker不生效

@07akioni
Copy link
Contributor

没理解,能贴个复现链接么?

@kennylbj
Copy link

kennylbj commented Sep 17, 2021

getPopupContainer={(trigger: any) => trigger.parentNode} 用TimePicker时也不生效,必须要将Popover设置为trigger="click"才行

@br-matt
Copy link

br-matt commented Aug 7, 2022

getPopupContainer={(trigger: any) => trigger.parentNode} 用TimePicker时也不生效,必须要将Popover设置为trigger="click"才行

Bless you, don't know why this isnt in the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants