Skip to content

Commit

Permalink
fix(VTimePicker): don't show buttons if ampmInTitle is not true (#20178)
Browse files Browse the repository at this point in the history
  • Loading branch information
blalan05 authored Jul 16, 2024
1 parent 098f802 commit 0c80102
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Period = 'am' | 'pm'

export const makeVTimePickerControlsProps = propsFactory({
ampm: Boolean,
ampmInTitle: Boolean,
ampmReadonly: Boolean,
color: String,
disabled: Boolean,
Expand Down Expand Up @@ -122,7 +123,7 @@ export const VTimePickerControls = genericComponent()({
}

{
props.ampm && (
props.ampm && props.ampmInTitle && (
<div
class={['v-time-picker-controls__ampm', {
'v-time-picker-controls__ampm--readonly': props.ampmReadonly,
Expand Down

0 comments on commit 0c80102

Please sign in to comment.