material-components / material-components/material-components-android
[Button] performClick() behavior when MaterialButton is disabled
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 17.4k
- Fork
- 3.2k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
> Components such as `android.widget.Button` and `android.widget.CheckBox` perform click actions when the `performClick` method is called, even if they're disabled. I see no reason why the MaterialButton should be any different.
>
>
>
> Also, the original implementation is incorrect because clicking on the disabled button works inconsistently; it doesn't invoke the `toggle()` method, but still performs click actions.
_Originally posted by @pubiqq in [#4967](https://github.com/material-components/material-components-android/pull/4967/changes#r2479703177)_
--
**Material Library version:** 1.14.0-alpha10
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Start at MaterialButton.performClick() and compare its disabled-state behavior with android.widget.Button and android.widget.CheckBox. Verify how click actions and toggle() behave when the button is disabled, then add or update coverage so the behavior is consistent and the disabled-state test passes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, java
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100