Skip to content
Advertisement

Quasar Select reacting to user input with Composition API

I’m have an application where my vue component has a Select control which users can select multiple items within it. I want this property to update based on what the user selects in the dropdown. However I continue to get this error when trying to set it up

[Vue warn]: Write operation failed: computed value is readonly.

The select is used as an input so users can add or remove multiple email addresses Here are the trimmed down versions of the code showing the important bits…

enter image description here

index.vue

JavaScript

Advertisement

Answer

Try to make the computed property writable by adding a setter :

JavaScript
Advertisement