Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

92
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda