Struggling with remote search + select pattern in combobox #22103
-
|
First of all, I am a beginner when it comes to TypeScript, Vue and Vuetify, but I unfortunately I am in a position where I need to debug a somewhat complex web app using vuetify. The issue that I experience with the application is connected to the implementation of a "remote search + select" pattern. Starting with Vuetify@3.7.12, for some reason the search field is cleared whenever I type something. When switching from Vuetify 3.7.12 to 3.7.11 in the example, you can see that it works as I expect it to. I also added some console log statements to show me what is going on when I type "b" inside the search field. For vuetify@3.7.11 the logs are: For vuetify@3.7.12 the logs are: I don't get why the search string is always cleared in the 3.7.12 version and above? Can somebody help me find a solution to this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
async function setModelValue(value: Model | string | undefined) {
if (!value || typeof value === "string") {
model.value = null
// ...You are interrupting the typing by resetting the field to |
Beta Was this translation helpful? Give feedback.


You are interrupting the typing by resetting the field to
null.VCombobox is basically a text field with a dropdown for suggestions,
valuein this event handler is expected to bestringmost of the time, so the logic here is just wrong.