vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.7.4] v-autocomplete placeholder text missing after manual reset

Open agentschmitt opened this issue 1 year ago • 6 comments

Environment

Vuetify Version: 3.7.4 Vue Version: 3.5.13 Browsers: Chrome 131.0.0.0 OS: Windows 10

Steps to reproduce

Select a value in the autocomplete Reset the value by updating the model in code (dont click the clear action)

Expected Behavior

The autocomplete shows placeholder text The autocomplete shows no clear icon, cause we have no value selected!

Actual Behavior

The autocomplete shows as empty The autocomplete shows a clear icon on hover

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

some workaround i found is to set the current selected value used for v-model also as key for the combobox, which will make vue rerender it ony every selection change :(

agentschmitt avatar Nov 20 '24 15:11 agentschmitt

I believe the first point of the issue is an expected behavior according to this PR.

EvgenyWas avatar Nov 24 '24 21:11 EvgenyWas

Duplicate of https://github.com/vuetifyjs/vuetify/issues/20660

MatthewAry avatar Nov 26 '24 04:11 MatthewAry

This also goes for the placeholder resetting etc. The element isn't "reset" even when you manually set the v-model to null.

https://play.vuetifyjs.com/#eNpdUUFugzAQ/MrKF1opDfeIRG2fUPUWcjDOprJqbMteuCD+3rVNEqiQgPHO7M6Oz5OIQdUf3u/HAcVBNIS9N5Lw1FqAZnyT3uffDJSzJLXFsBzlw5sL/QMXzUBOOe6DhM8CgJEdmmMrvjFSK9aV8a1311y7aTTXuO/jz5Zx0OwsMiF/tzVlUAbZmdWw+umw3lhM8P8abLkjC+/KaPW78QBHsIMxrTh9YURKYmbeZT7gaZoKe56bOuEcG9NKbk29ypNhVEF7Am41lFh1710gmCCgVKRHhBluwfVQ8X1UScPrORsJyhg2dGe+TMUG2zxA1UnLT7VLZ/PrWpgDY9250CcgTQZZwrdusNrBKM2QMFtmDHPusSZ+Lr0fzGXYQr2kPctmvJOYdymy/Lr8AezPvzs=

saysora avatar Feb 17 '25 02:02 saysora

Calling $refs.myForm.reset() seems like a good-enough workaround for now. Or even easier... track v-model:search and null one more ref search.value = null (demo)

J-Sek avatar Feb 17 '25 10:02 J-Sek

https://github.com/vuetifyjs/vuetify/issues/21392#issuecomment-2865205230

KaelWD avatar May 09 '25 05:05 KaelWD

Fixed by #22114 in v3.10.3

J-Sek avatar Oct 21 '25 18:10 J-Sek