Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputTextarea: autoResize not working when disabled #7502

Closed
tknaller opened this issue Dec 13, 2024 · 5 comments · Fixed by #7580
Closed

InputTextarea: autoResize not working when disabled #7502

tknaller opened this issue Dec 13, 2024 · 5 comments · Fixed by #7580
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@tknaller
Copy link

tknaller commented Dec 13, 2024

Describe the bug

When an hast autoFocus but is also disabled, autoFocus does not work when the value is changed by data loaded later on (react-query)

Same issue also existed some time ago in primefaces: primefaces/primefaces#631

Reproducer

No response

System Information

System:
    OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 5.69 GB / 15.49 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.18.1 - ~/.nvm/versions/node/v20.18.1/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.18.1/bin/npm
npmPackages:

    "primereact": "^10.8.5"
    "react": "17.0.1"

Steps to reproduce the behavior

No response

Expected behavior

No response

@tknaller tknaller added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 13, 2024
@melloware
Copy link
Member

@tknaller i just tested this and its working for me? See this stack blitz: https://stackblitz.com/edit/th1z7zmb?file=src%2FApp.jsx

@melloware melloware added Status: Needs Reproducer Issue needs a runnable reproducer and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 30, 2024
Copy link

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

@tknaller
Copy link
Author

tknaller commented Jan 8, 2025

Hi,

thank you for your response. The issue only arises when the data is loaded later (via an API for example), I forked and adapted your example: https://stackblitz.com/edit/th1z7zmb-btsx4cbc?file=src%2FApp.jsx

Thanks!
Thomas

@tnowad
Copy link
Contributor

tnowad commented Jan 8, 2025

@melloware Hi, I would like to work on this issue. Could you please assign it to me? Thanks!

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Reproducer Issue needs a runnable reproducer labels Jan 8, 2025
@melloware melloware added this to the 10.9.2 milestone Jan 8, 2025
@melloware
Copy link
Member

Thanks @tknaller @tnowad i merged your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants