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

Using textarea with live() resets the height when typing #13090

Closed
nielsvh2103 opened this issue Jun 4, 2024 · 0 comments · Fixed by #13102
Closed

Using textarea with live() resets the height when typing #13090

nielsvh2103 opened this issue Jun 4, 2024 · 0 comments · Fixed by #13102
Labels

Comments

@nielsvh2103
Copy link
Contributor

nielsvh2103 commented Jun 4, 2024

Package

filament/forms

Package Version

3.2.83

Laravel Version

11.10

Livewire Version

Latest (3.5.0)

PHP Version

8.3.7

Problem description

Edit: i just realized it always happens unless you add autosize (we do not want autosize in this case)

Using live() in a textarea does not work properly.

We tried using it in a repeater as well on live(true) (with on blur), that didnt work either

Happens when typing or pasting (ctrl + v)

Screen.Recording.2024-06-04.at.16.35.38.mov

Expected behavior

Simple, the resized height should preserve and not go back to initialheight (that is set in the view)

Steps to reproduce

                Textarea::make('description')
                                    ->label(false)
                                    ->maxLength('180')
                                    ->nullable()
                                    ->live(),

Just add live, or live(true) to a textarea input
Should be set for you in my reproduction repository.

Reproduction repository

https://github.com/nielsvh2103/filament-issue

Relevant log output

No response

Donate 💰 to fund this issue

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant