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

241
Views
Después de hacer clic en el botón, el nuevo valor de entrada vuelve al valor anterior

Necesito consejo, estoy haciendo una extensión JS de este tipo, pero tal vez me esté equivocando porque la aplicación se ejecuta en Angular

 var input1 = document.getElementsByClassName("vypln")[0]; var enter = new CustomEvent('keyup'); enter.which = 13; enter.keyCode = 13 input1.focus();input1.value=""; document.execCommand('insertText', false, 4); input1.dispatchEvent(enter); document.getElementsByClassName('buttons')[0].querySelector('button').click();

Los datos se escriben en la entrada, ... pero después de hacer clic en el botón, se establece el valor anterior. Quiero que el valor se quede allí y lo haga. Curiosamente, si uso este código y luego hago clic (mouse / manualmente) en cualquier lugar y luego llamo a document.getElementsByClassName('buttons')[0].querySelector('button').click(); por lo que funciona bien. Gracias a todos por el consejo)

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!