nuxt / nuxt/ui

`USelectMenu`: Allow deselection of items

Open
#4,647 12 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

upstream/reka-ui
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Description

When using multiple with USelectMenu selected items can be deselected again. But when not having multipe option this is not the case. The select goes from undefined to a value and then can never become undefined again (without an external button).

I would propose to add a new prop that allows values to be deselected, so the model becomes undefined again.

Additional context

No response

Contributor guide

Open the contributing guide

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

Locate the USelectMenu component entry point and read how its single-value and multiple-value selection paths differ. Check the existing USelectMenu tests or usage examples, then consider the work complete when a selected single value can be cleared back to undefined while multiple selection continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.