Skip to content

button element with cButton directive loosing tabindex attribute #228

Closed
@bernik1980

Description

@bernik1980

I have the following button, which i would like to be ignored when using the tab key:

<button cButton color="light" (click)="..." tabindex="-1">...

The tabindex attribute is removed when rendered for html.

Without the cButton directive, this does not happen.

I can fix this, by using an with cButton. The tabindex is not removed. But I prefere using the button element and hope you can fix this.

Activity

self-assigned this
on May 30, 2025
added a commit that references this issue on Jun 3, 2025
3cfcaf3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    button element with cButton directive loosing tabindex attribute · Issue #228 · coreui/coreui-angular