DatePicker: buttonBar for time-only variant shows meaningless "Today" button #7333
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When using DatePicker's timeOnly variant with showButtonBar enabled, both "Today" and "Clear" buttons are included, but "Today" has no meaning with a date.
"Clear" remains very useful. We would like to render the buttonBar for timeOnly Datepickers without the "Today" button by default to avoid needing passthrough to control its visibility.
Pull Request Link
#7334
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-h3e3k76w?file=src%2FApp.vue
Environment
The bug is reproducible with any client of PrimeVue v4 (Chome MacOS Nuxt 3 app in my case)
Vue version
3.x.x
PrimeVue version
4.x.x
Node version
x.x.x
Browser(s)
No response
Steps to reproduce the behavior
timeOnly="true"
andshowButtonBar="true"
Expected behavior
When
timeOnly="true"
, the buttonBar contains only the "Clear" button.The text was updated successfully, but these errors were encountered: