Skip to content

InputMenu Clear Search Term on Select #3782

@Lateralus58

Description

@Lateralus58

Description

I've recently upgraded to NuxtUi v3.0.2 from v3.0.0-beta.2 and I'm having an issue with the search term prop on the component.

When using the input with search and multiselect, I'd like the search term to clear as the user selects menu items. I was able to achieve this, in previous versions, by using a v-model on the search term and calling a function to clear the search term on the update:ModelValue event. Unfortunately, this isn't working on the most recent version.

It appears that update:ModelValue is being emitted and I am able to clear the searchTerm ref value. However, the change doesn't propagate to the component unless I hit the tab key or click out and click back into the component.

Is there a potential workaround or could this become a feature request to include a prop which clears the search term on item select?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions