Fixed #1847 - Calendar | Escape Support For Month and Year Picker
parent
aec038d870
commit
52e2b79a92
|
@ -15,10 +15,10 @@
|
||||||
<span class="p-datepicker-prev-icon pi pi-chevron-left"></span>
|
<span class="p-datepicker-prev-icon pi pi-chevron-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="p-datepicker-title">
|
<div class="p-datepicker-title">
|
||||||
<button type="button" @click="switchToMonthView" v-if="currentView === 'date'" class="p-datepicker-month p-link" :disabled="switchViewButtonDisabled">
|
<button type="button" @click="switchToMonthView" @keydown="onContainerButtonKeydown" v-if="currentView === 'date'" class="p-datepicker-month p-link" :disabled="switchViewButtonDisabled">
|
||||||
{{getMonthName(month.month)}}
|
{{getMonthName(month.month)}}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" @click="switchToYearView" v-if="currentView !== 'year'" class="p-datepicker-year p-link" :disabled="switchViewButtonDisabled">
|
<button type="button" @click="switchToYearView" @keydown="onContainerButtonKeydown" v-if="currentView !== 'year'" class="p-datepicker-year p-link" :disabled="switchViewButtonDisabled">
|
||||||
{{currentYear}}
|
{{currentYear}}
|
||||||
</button>
|
</button>
|
||||||
<span class="p-datepicker-decade" v-if="currentView === 'year'">
|
<span class="p-datepicker-decade" v-if="currentView === 'year'">
|
||||||
|
|
Loading…
Reference in New Issue