TabPanel @click not working

UI Components for Vue
Post Reply
grigoriy
Posts: 1
Joined: 22 Feb 2021, 18:32

22 Feb 2021, 18:43

Hello!
Event click not working:

Code: Select all

        <TabView>
            <TabPanel v-for="(v,i) in language.data" :header="v.title" @click="t(i)" :key="i">
                <tab :data="editTabPackage(v)" :counter="tabIndex"></tab>
            </TabPanel>
        </TabView>
        
Refs not working console.log(this.$refs.['input' + index].value);

Code: Select all

<div v-if="currentModelKey" class="border p-3">
            <div v-for="(v,i) in currentModel.data" class="mb-3">
                <div class="p-inputgroup">
                    <span class="p-inputgroup-addon">{{ labelEnglishTitle(v) }}</span>
                     <InputText :ref="`input${i}`" class="form-control" :value="currentValueTitle(v)"
                           @keyup="syncModel(i)"/>
                </div>
            </div>
        </div>
thank you!

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 1 guest