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

222
Views
¿Por qué mi Event Listener no dispara después del segundo evento?

Estoy creando un formulario de carga de fotos con Livewire, Alpine y FilePond. Después de que las fotos hayan terminado de procesarse, quiero mostrar un botón "Guardar" para conservar los archivos.

Estoy usando Alpine para manejar el mostrar/ocultar. Ambos detectores de eventos funcionan correctamente cuando están separados, pero parece que no puedo hacer que funcionen juntos. El siguiente código no arroja errores, pero tampoco muestra los botones dentro del div showSaveButtons.

¿Qué estoy haciendo mal?

 <div x-data="showSaveButtons"> <div x-show="open"> Buttons Go Here </div> </div>
 <script> document.addEventListener('alpine:init', () => { Alpine.data('showSaveButtons', () => ({ open: false, })); document.addEventListener("FilePond:processfiles", () => { Alpine.data('showSaveButtons', () => ({ open: true, })); }); }) </script>
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!