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 : cannot manipulate overlay ? #6393

Closed
Kamsou opened this issue Sep 12, 2024 · 2 comments
Closed

DatePicker : cannot manipulate overlay ? #6393

Kamsou opened this issue Sep 12, 2024 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Kamsou
Copy link

Kamsou commented Sep 12, 2024

Describe the bug

Hello !

I've just switched from Calendar to DatePicker, and I can't manipulate the overlay to tell it to close or open as I could with the calendar, is this normal?

I'd like to close my overlay by clicking on the buttons in my footer and not by clicking on the date.

Is there a way?

Capture d’écran 2024-09-12 à 16 46 33

Thanks

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-bwfbbx?file=src%2FApp.vue

PrimeVue version

^4.0.0-rc.3

Vue version

4.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@Kamsou Kamsou added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 12, 2024
@avramz
Copy link
Contributor

avramz commented Oct 2, 2024

Hi! The DatePicker component itself does not support this out of the box, but you can easily create a custom component by utilizing InputText (maybe even InputMask), Popover, and DatePicker!

Something like this: https://stackblitz.com/edit/primevue-4-vite-issue-template-eiozch?file=src%2FApp.vue

@Kamsou
Copy link
Author

Kamsou commented Oct 2, 2024

Thank you very much @avramz! it will manage the use we wanted. I close this.

@Kamsou Kamsou closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants