react-component / react-component/mentions

Disabled option can be selected by pressing Enter key

Open
#297 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
112
Forks
65
Avg merge
28m
Merged PRs (30d)
2

Description

      <Mentions>
        <Option disabled value="light">Disabled Light</Option>
        <Option value="bamboo">Bamboo</Option>
        <Option value="cat">Cat</Option>
     </Mentions>

The disabled option cannot be selected by clicking, but it can be selected by pressing Key Up/Down and Key Enter.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the Mentions keyboard-navigation and Enter-key handling using the JSX example in the issue. Reproduce the case with the disabled Light option, then verify that navigating and pressing Enter cannot select it while the Bamboo and Cat options remain selectable.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.