Disabling an open Select still allows option changes

Open
#949 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
angular, typescript
Domain
frontend

Research direction

The payload names only the Select control's disabled input and its open options list, not a file. Start by finding the Select component in this Angular library and reading how it handles disabled state while the options panel is open. Reproduce with the steps in the issue, then check that the panel closes, the value stays Draft, and no valueChanged event fires after clicking Confirmed.

Written by the indexing model from the issue text.

Description

Reproduction
  1. Render the Select with Draft selected and open its options.
  2. Set the control's disabled input to true while the options are open.
  3. Click Confirmed in the list.

Chrome reproduction

Expected behavior

The options close, the value stays Draft, and no valueChanged event fires.

Actual behavior

The options stay interactive. Clicking Confirmed changes the value and fires an event.

Reproduced in Chrome 157 on master at aa80e58.

Dominant language
TypeScript
Stars
9
Forks
8
Avg merge
1d 6h
Merged PRs (30d)
25

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AbsaOSS/cps-shared-ui

All issues in AbsaOSS/cps-shared-ui

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.