adopted-ember-addons / adopted-ember-addons/ember-keyboard

Using the on-key modifier in a list, binds to all list items.

Aperta
#231 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
177
Fork
59
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hey,

Love the on-key modifier, however when using it in a list I observe the following:

```


    {{#each listItems as |item|}}
  • tabindex="0">{{item.name}}

  • {{/each}}

```

When I focus the list item and hit enter, I see an alert triggered for each of the items.

Any guidance on this?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the list example using the on-key modifier and the Enter key, then inspect how handlers are attached when the list is rendered. Done means pressing Enter on one focused list item triggers only that item's alert rather than every item's alert.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.