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

maxHeight doesn't work on Firefox #342

Open
Captp2 opened this issue May 10, 2022 · 0 comments
Open

maxHeight doesn't work on Firefox #342

Captp2 opened this issue May 10, 2022 · 0 comments

Comments

@Captp2
Copy link

Captp2 commented May 10, 2022

Code example :

<TextareaAutosize
                        id="input-textarea"
                        minRows={1}
                        maxRows={2}
                        value={input}
                        onChange={handleInputChange}
                        onKeyDown={handleInputKeyPress}
                        placeholder={inputPlaceholder()}
                        onClick={hideWrapperFlexClass}
                        onBlur={showWrapperFlexClass}
                        className="border-none resize-none rounded-l-xl w-full py-4 pl-4 text-sm focus:outline-none"
                    ></TextareaAutosize>

Screenshots :

On firefox (100.0, latest version to date) :

image

On chrome :

image

I'm guessing it's related to Firefox's handle of height mentioned here : #313

I'll try and investigate the issue and produce a fix/workaround.

Edit : I'm using Tailwind and adding a max-height did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant