Relative Content

Tag Archive for javascriptvue.jsvuejs3vuetify.js

ref is null inside onmounted() in vue 3 script setup

trying to get parent element of router-view, and show some background animation. but ref is null inside onmounted(), used nextTick() still ref is null. if i use watch with fogElement.value is not null, but how to do it using onmounted()?

v-data-table showing up as empty despite items being in the backing array

I have this function fetchItemData that fetches data from the DB and assigns it to itemsList, which is bound to items of v-data-table. The v-data-table shows the new data perfectly fine on other events, like a change in sort parameters or items-per-page. But when searchText changes (@input event on v-text-field), despite the data being returned perfectly fine and assigned to itemsList with no problems, it does not show up in the table at all and I get the no-data screen.