Skip to content

fix(VAutocomplete): prevent menu icon from toggling twice - #23200

Open
modos wants to merge 1 commit into
vuetifyjs:masterfrom
modos:fix/autocomplete-menu-icon-toggle
Open

modos wants to merge 1 commit into
vuetifyjs:masterfrom
modos:fix/autocomplete-menu-icon-toggle

Conversation

@modos

@modos modos commented Sep 19, 2026

Copy link
Copy Markdown

fix(VAutocomplete): prevent menu icon from toggling twice

resolves #23197

Description

When open-on-focus and close-on-input-click were used together, clicking the menu icon while the field was unfocused caused the menu to toggle twice. The menu would briefly open and immediately close.

This change ensures that the menu icon toggles the menu only when the field is already focused. A regression test was added for both VAutocomplete and VCombobox.

Markup:

<template>
  <v-app>
<v-container>
<v-autocomplete close-on-input-click open-on-focus />
<v-combobox
label="Combobox"
:items="['foo', 'bar']"
close-on-input-click
open-on-focus
/>
</v-container>
  </v-app>
</template>

<script setup></script>

<style scoped>

</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report][4.2.1] Menu flashing with openOnFocus and closeOnInputClick when using menu open button

1 participant