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

362
Views
Problema al pegar imágenes con @HostListener en Angular (las entradas no pueden recibir texto del portapapeles)

Implementé un código usando @HostListener de '@angular/core' para obtener imágenes del portapapeles, sin embargo, este código impide que cualquier entrada en la pantalla pueda recibir un texto copiado.

 @HostListener('paste', ['$event']) onPaste(event: any): void { const files = (event.clipboardData || event.originalEvent.clipboardData).items; ... }

Cada vez que pego un texto en alguna entrada, se llama al método onPaste y la entrada no puede ser editada por el portapapeles.

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!