Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Autocomplete #344

Closed
larrasu opened this issue Jun 24, 2023 · 5 comments · Fixed by #1095
Closed

[Feature Request] Autocomplete #344

larrasu opened this issue Jun 24, 2023 · 5 comments · Fixed by #1095
Labels

Comments

@larrasu
Copy link
Contributor

larrasu commented Jun 24, 2023

Is your feature request related to a problem? Please describe.

I tried using the UPopover component with UInput but the input can't be accessed once the popover appears.

<UPopover>
  <UInput
    v-model="searchTerm"
    icon="i-heroicons-magnifying-glass-20-solid"
    placeholder="Search places..."
    size="xl"
    :ui="{ wrapper: 'max-w-screen-md w-full' }"
  />

  <template #panel>
    <UCard>
      <UVerticalNavigation :links="results" />
    </UCard>
  </template>
</UPopover>

Describe the solution you'd like

AutoComplete - PrimeVue

@larrasu larrasu added the enhancement New feature or request label Jun 24, 2023
@larrasu larrasu changed the title [Component] Autocomplete [Feature Request] Autocomplete Jun 24, 2023
Copy link
Member

I guess this can be achieved with the ContextMenu component with a CommandPalette inside, this is how we've made the issue, user and emoji autocomplete on Volta:
CleanShot 2023-06-25 at 14.06.16@2x.png

I'll try to add an example in the docs 😊

@larrasu
Copy link
Contributor Author

larrasu commented Jun 25, 2023

Thank you!

Copy link
Member

Actually, this is the main goal of the Headless UI Combobox component. We use it as a foundation for the SelectMenu and CommandPalette components, maybe we could add an InputMenu?

@benjamincanac benjamincanac added feature and removed enhancement New feature or request labels Jun 26, 2023 — with Volta.net
@guimas
Copy link

guimas commented Sep 30, 2023

+1 on the idea of a InputMenu working like a Combobox. Or a component like the CommandPalette with the options showing only when there is text on the search input.

@cco3
Copy link

cco3 commented Nov 25, 2023

with a CommandPalette inside

For those trying to figure this out, there's an undocumented function called updateQuery CommandPalette exposes that makes this possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants