Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Vuetify Dialog Reset Content on re-open

I have a vuetify dialog that contains an iframe.

I need that every time the dialog re-opens the iframe will reset to the beginning.

Right now the with every opening of the dialog the iframe is at its last state.

I tried using v-if on the dialog and adding a :key for re-rendering and it didn't work.

my dialog + iframe

 <v-dialog
          v-model="dialog['dialog_' + index]"
          width="500">
          <template v-slot:activator="{ on, attrs }">
            <div style="display: flex; flex-direction: column; align-items: center;">
              <v-btn
                v-on="on"
                v-bind="attrs"
                @click="onActionClick(action)"
                icon
                class="action-button">
                <img :src="'../../../static/assets/Images/' + action.icon +'.svg'">
              </v-btn>
              <p
                class="mt-2"
                style="line-height: 12px">{{ action.label }}</p>
            </div>
          </template>
          <iframe
            :src="iframeUrl"
            :title="action.label"/>
        </v-dialog>

Thank you.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In your v-dialog component do this:

<v-dialog
  @input="refreshIframe"
  v-model="dialog['dialog_' + index]"
  width="500">

And add a method to your script like this:

methods: {
  // other methods...
  refreshIframe () {
    const tempUrl = this.iframeUrl;
    iframeUrl = "";
    iframeUrl = tempUrl;
  }
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!