Disabling an open Autocomplete still allows option changes

Aperta
#950 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
angular, typescript
Ambito
frontend

Direzione di ricerca

The bug is in the Autocomplete component's disabled input handling while its option panel is open. Start by finding where disabled is read and where option click handlers emit valueChanged, then check whether the open panel is closed when disabled becomes true. Done when the reproduction steps leave the value at Apple, close the options, and fire no valueChanged event, with a test that toggles disabled while the panel is open.

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

Descrizione

Reproduction
  1. Render the Autocomplete with Apple selected and open its options.
  2. Set the control's disabled input to true while the options are open.
  3. Click Orange in the list.

Chrome reproduction

Expected behavior

The options close, the value stays Apple, and no valueChanged event fires.

Actual behavior

The options stay interactive. Clicking Orange changes the value and fires an event.

Reproduced in Chrome 157 on master at aa80e58.

Lingua principale
TypeScript
Stelle
9
Fork
8
Merge medio
1g 6h
PR unite (30g)
25

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AbsaOSS/cps-shared-ui

Tutte le issue di AbsaOSS/cps-shared-ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.