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

textarea elastic #161

Open
irsal-png opened this issue Sep 18, 2021 · 1 comment
Open

textarea elastic #161

irsal-png opened this issue Sep 18, 2021 · 1 comment

Comments

@irsal-png
Copy link

can you help me, how to make the textarea elastic from the emoji picker

@jlwegaba
Copy link

I had faced the same problem. so i used class in my textarea to over ride the emoji's hidden one with height: auto !important;

Also added
<script> // Auto expand the Text Area as content increases $("textarea").each(function () { this.setAttribute("style", "height:" + (this.scrollHeight) + "px;overflow-y:hidden;"); }).on("input", function () { this.style.height = "auto"; this.style.height = (this.scrollHeight) + "px"; }); </script>

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

2 participants