I’m wondering if I can add an addbutton to the select component.
<q-select ref='qw_select' v-model='model' :label='label' @add='this.add_method' clearable use-input use-chips @new-value='this.createValue' :options='this.values' > <template v-slot:append='validation'> <q-btn color='grey' icon="add" @click='what_should_i_do_here'> </q-btn> </template> </q-select>
I want to capture the typed value in the input field when the user clicks the add button, but as soon as it leaves the input field, it seems that the values are dropped.
The input field is behaving like a search field, wich I want by the way, but I want the user to be able to add a new value, when it clicks in the add button.
Any help is appreciated.