primeng icon indicating copy to clipboard operation
primeng copied to clipboard

SelectButton: Disabled button has focus

Open martinkasa opened this issue 3 months ago • 0 comments

Describe the bug

When disabling first X button from the beginning, first button has focus. Selected is third button. 2024-11-05_18-20-25

Environment

angular app

Reproducer

No response

Angular version

18.X

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

Edge

Steps to reproduce the behavior

selected=3;

<p-selectButton
  [allowEmpty]="false"
  [ngModel]="selected"
  [options]="[
    {
      value: 1,
      label: 'Disabled 1',
      disabled: true,
    },
    {
      value: 2,
      label: 'Disabled 2',
      disabled: true,
    },
    {value: 3, label: 'Enabled'},
  ]"></p-selectButton>

Expected behavior

Disabled button should not have focus.

martinkasa avatar Nov 05 '24 17:11 martinkasa