nuxt / nuxt/ui

New prop `clearable` to USelect

Open
#5,514 4 comments 7 reactions 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

Package

v4.2.1

Description

Using the placeholder prop makes it impossible to deselect the selection. This is a fairly common problem. It would be great to add this option so I don't have to write a wrapper myself, adding cleanup via the trailing slot.

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

Start by locating the USelect component and reading how its placeholder and selection behavior are handled. Verify the requested clearable option by checking that a selected value can be deselected without a wrapper or trailing-slot cleanup; the issue does not name a specific file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, tailwindcss, 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.