Make menu's work with keyboard (#6421)

This commit is contained in:
Bram Kragten
2020-07-17 20:31:44 +02:00
committed by GitHub
parent cddbf460f8
commit 92915eddc2
13 changed files with 38 additions and 27 deletions

View File

@@ -77,7 +77,7 @@ export class HaDateRangePicker extends LitElement {
</div>
${this.ranges
? html`<div slot="ranges" class="date-range-ranges">
<mwc-list @click=${this._setDateRange}>
<mwc-list @request-selected=${this._setDateRange}>
${Object.entries(this.ranges).map(
([name, dates]) => html`<mwc-list-item
.activated=${this.startDate.getTime() ===