nuxt / nuxt/ui

InputMenu want to selection to optional

Open
#4,717 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Dear Contributors,

NuxtUI has been a great help in my app development. Thank you very much.

I would like to request the addition of a new feature. I would appreciate your consideration.

Common search engines provide a search bar with a suggestion feature.
Selecting a keyword from the provided suggestions is optional; if a user does not select a suggestion, the content they have entered takes precedence.

However, the current InputMenu specifications automatically select the first item on the list if the user doesn't make a selection, overwriting the user's input with that value.
It would be useful if there were a feature that limited the overwriting of user input to only cases where the user explicitly selects an item from the list.

Thank you.

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

Begin at the InputMenu component entry point in the Nuxt UI TypeScript source and trace how typed input is handled when suggestions are shown. Reproduce the case where no suggestion is selected; completion means preserving the entered text in that case while still replacing it after an explicit selection.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.