Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select button: Get focused on tab while being disabled #16251

Open
Pablo200206 opened this issue Aug 16, 2024 · 0 comments
Open

Select button: Get focused on tab while being disabled #16251

Pablo200206 opened this issue Aug 16, 2024 · 0 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Pablo200206
Copy link
Contributor

Describe the bug

The Select button component receives focus when tabbed when it's disabled. This behavior is inconsistent with how other components function.
https://stackblitz.com/edit/stackblitz-starters-nkj4g3?file=package.json

Environment

{
"name": "angular-starter",
"private": true,
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build"
},
"dependencies": {
"@angular/animations": "^18.1.0",
"@angular/common": "^18.1.0",
"@angular/compiler": "^18.1.0",
"@angular/core": "^18.1.0",
"@angular/forms": "^18.1.0",
"@angular/platform-browser": "^18.1.0",
"@angular/router": "^18.1.0",
"primeng": "^17.18.9",
"rxjs": "^7.8.1",
"tslib": "^2.5.0",
"zone.js": "~0.14.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.1.0",
"@angular/cli": "^18.1.0",
"@angular/compiler-cli": "^18.1.0",
"typescript": "~5.5.0"
}
}

Reproducer

No response

Angular version

18.1

PrimeNG version

17.18

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

Chrome, Edge, Safari

Steps to reproduce the behavior

Go to https://stackblitz.com/edit/stackblitz-starters-nkj4g3?file=package.json

Start navigation with tabulation.

Select button gets focused

Normal button does not get focused.

Expected behavior

Select button should behave as a p-button

@Pablo200206 Pablo200206 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 16, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 10, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.18.10 milestone Sep 10, 2024
mehmetcetin01140 added a commit that referenced this issue Sep 10, 2024
@mehmetcetin01140 mehmetcetin01140 modified the milestones: 17.18.10, 17.18.11 Sep 11, 2024
@cetincakiroglu cetincakiroglu modified the milestones: 17.18.11, 17.18.12 Sep 26, 2024
@mehmetcetin01140 mehmetcetin01140 modified the milestones: 17.18.12, 17.18.13 Nov 13, 2024
@mertsincan mertsincan modified the milestones: 17.18.13, 17.x Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
Status: No status
Development

No branches or pull requests

4 participants