@@ -564,26 +564,26 @@ class Calendar extends BaseComponent {
564
564
navigationElement . classList . add ( 'calendar-nav' )
565
565
navigationElement . innerHTML = `
566
566
<div class="calendar-nav-prev">
567
- <button class="calendar-nav-btn btn-double-prev" aria-label="${ this . _config . ariaNavPrevYearLabel } ">
567
+ <button type="button" class="calendar-nav-btn btn-double-prev" aria-label="${ this . _config . ariaNavPrevYearLabel } ">
568
568
<span class="calendar-nav-icon calendar-nav-icon-double-prev"></span>
569
569
</button>
570
- ${ this . _view === 'days' ? `<button class="calendar-nav-btn btn-prev" aria-label="${ this . _config . ariaNavPrevMonthLabel } ">
570
+ ${ this . _view === 'days' ? `<button type="button" class="calendar-nav-btn btn-prev" aria-label="${ this . _config . ariaNavPrevMonthLabel } ">
571
571
<span class="calendar-nav-icon calendar-nav-icon-prev"></span>
572
572
</button>` : '' }
573
573
</div>
574
574
<div class="calendar-nav-date" aria-live="polite">
575
- ${ this . _view === 'days' ? `<button class="calendar-nav-btn btn-sm btn-month">
575
+ ${ this . _view === 'days' ? `<button type="button" class="calendar-nav-btn btn-sm btn-month">
576
576
${ calendarDate . toLocaleDateString ( this . _config . locale , { month : 'long' } ) }
577
577
</button>` : '' }
578
- <button class="calendar-nav-btn btn-year">
578
+ <button type="button" class="calendar-nav-btn btn-year">
579
579
${ calendarDate . toLocaleDateString ( this . _config . locale , { year : 'numeric' } ) }
580
580
</button>
581
581
</div>
582
582
<div class="calendar-nav-next">
583
- ${ this . _view === 'days' ? `<button class="calendar-nav-btn btn-next" aria-label="${ this . _config . ariaNavNextMonthLabel } ">
583
+ ${ this . _view === 'days' ? `<button type="button" class="calendar-nav-btn btn-next" aria-label="${ this . _config . ariaNavNextMonthLabel } ">
584
584
<span class="calendar-nav-icon calendar-nav-icon-next"></span>
585
585
</button>` : '' }
586
- <button class="calendar-nav-btn btn-double-next" aria-label="${ this . _config . ariaNavNextYearLabel } ">
586
+ <button type="button" class="calendar-nav-btn btn-double-next" aria-label="${ this . _config . ariaNavNextYearLabel } ">
587
587
<span class="calendar-nav-icon calendar-nav-icon-double-next"></span>
588
588
</button>
589
589
</div>
0 commit comments