primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.08k stars 4.54k forks source link

pInputTextarea: onResize event doesn't fire at all #15896

Open coder80s opened 2 months ago

coder80s commented 2 months ago

Describe the bug

onResize event is not firing when textarea is being resized.

Environment

Prometeo showcase textarea basic example

Reproducer

https://stackblitz.com/edit/bumrc9?file=src%2Fapp%2Finput-textarea-basic-demo.ts

Angular version

18.0.1

PrimeNG version

17.18.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.10.0

Browser(s)

Chrome

Steps to reproduce the behavior

  1. Go to reproducer link
  2. Resize textarea

Expected behavior

An alert shall be shown. Nothing happened. I have been able to reproduce this also in my local environment with an lower Angular version (17.3.7)

volvachev commented 1 month ago

Hi, if you look at the code, the pInputTextarea resize event has nothing to do with the actual resize event, it's just a trigger on the input change event. Set autoResize to true and handle onResize.