No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    QDataTable with QInput field

    Help
    1
    1
    580
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      ydl last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post