filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.

Home Page:https://filamentphp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using textarea with live() resets the height when typing

nielsvh2103 opened this issue · comments

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