[Bug] Il componente <it-dropdown-item> non risulta davvero disabilitato
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- angular, typescript
- Domain
- frontend
Research direction
Start by locating the it-dropdown-item component and the itDropdownItem directive, then reproduce the provided Angular example with disabled="true". Trace how click events are handled for disabled items and verify that onClick() is not called in either usage when the disabled state is set.
Written by the indexing model from the issue text.
Description
Esiste già una discussione sul tema che ti interessa, o su un tema simile?
- Ho verificato e non esiste
Versione della libreria
v21.0.0
Cosa
Il componente, sebbene sia disabilitato, risulta ugualmente cliccabile
<!-- `onClick()` viene chiamato nonostante `disabled` sia `true` -->
<it-dropdown-item
mode="button"
disabled="true"
(click)="onClick()"
>
Click me!
</it-dropdown-item>
Perché
è un grosso limite, in quanto non tutti gli <it-dropdown-item> vengono utilizzati come link
Contesto
No response
Altro
Il problema si presenta anche con l'utilizzo della direttiva itDropdownItem
- Dominant language
- TypeScript
- Stars
- 86
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from italia/design-angular-kit
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
italia/design-angular-kit#738 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
italia/design-angular-kit#732 · 2 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
italia/design-angular-kit#731 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
italia/design-angular-kit#729 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
italia/design-angular-kit#721 ·
All issues in italia/design-angular-kit
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100