QDataTable with QInput field



  • I created the following:

    <div class=“row”>
    <q-data-table ref=“slectedSomeThing” :config=“selectedSomethingConfig” :data=“selectedSomethingArray” :columns=“selectedSomethingFields”>
    <template slot=‘col-weight’ scope=‘cell’>
    <q-input primary inverted type=‘number’ v-model=“cell.value” @blur=“leavingRow(cell, cell.row.id, cell.value)” @change=“doCalculate(cell.row.id, cell.value)” />
    </template>
    </q-data-table>
    </div>

    While testing I set a value in the field BUT when leaving it the value gone EVEN if the ‘selectedSomethingArray’ is updated with the new value via ‘doCalculate’

    Any idea how to solved it?