-
Notifications
You must be signed in to change notification settings - Fork 0
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
Autosize Daily Nerd Textarea #99
Conversation
You should consider a pure css solution Also is this resolving this issue? |
@leoggonzalez Doesn't this still need JavaScript to fill the Haha, I didn't know #93 exists, sorry. :D I'm only interested in the auto height for now. |
@danieldiekmeier you still need js yes but at least you won't be programatically setting inline styles, which are never desirable.
Also good to know that this will be fixed with one line of css in the future: |
@leoggonzalez I disagree, I think inline styles do have their place, and that this is a reasonable use case for them. In the solution I proposed, we only need to attach the Stimulus Controller directly to the textarea, so the impact to HTML and CSS is minimal. I started implementing the CSS version you linked, but I noticed that it needs additional wrappers which are not currently part of the FormBuilder we're using. So we'd add code to the FormBuiler, to the HTML, to the CSS and to the JS. Feels too shotgun surgery for me. If you feel strongly that this can't be merged, then I think I'll just close the PR. |
@danieldiekmeier sorry i did not know about the hassle of this particular stack. Seemed quite straightforward in our react implementation. I'll just approve this. Hopefully in the future @JensRavens can be convinced to migrate to react (next?) for the frontend part in this project. |
@leoggonzalez Yessss, in React, this would have been very easy. :D That's what I thought when I looked at the KS code, but when I started copying it over, it quickly became worse and worse. Thanks for the approval! |
Screen.Recording.2024-05-16.at.18.50.37.mov