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

364
Views
Problem pasting images with @HostListener in Angular (inputs can't receive text from clipboard)

I implemented a code using the @HostListener from '@angular/core' to get images from the clipboard, however, this code is preventing any input on the screen from being able to receive a copied text.

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

Ever i paste a text in some input, onPaste method ins called and the input cannot edited by clipboard.

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!