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

87
Views
issues with a dialog focus and method not triggering

I have a code in view where i am opening a dialog and using a autofcous and a call to the method so it can call that method and add the code to the elements

i have it working by using setTimeout but i do not want to use setTimeout and make it workj with either computed or mounted so it can add elements to it, if i use mounted or computed, i get an error

async mounted() {
    await this.$nextTick();
    this.handleOpen();
  }

TypeError: Cannot read properties of null (reading 'setAttribute')

my working is here in the below fiddle

https://jsfiddle.net/ufdxhzkn/

the above fiddle actually works with settimeout, but does not work with mounted or computed, i do not want to use setTimeout, it should handle automatically and add relevant code when the popup is either rendered or opened.

about 4 years ago · Juan Pablo Isaza
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!