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

TextField with multiline doesn't get inputEl set #357

Open
erlenddahl opened this issue May 21, 2024 · 1 comment
Open

TextField with multiline doesn't get inputEl set #357

erlenddahl opened this issue May 21, 2024 · 1 comment

Comments

@erlenddahl
Copy link

erlenddahl commented May 21, 2024

In TextField, only the Input element has bind:inputEl. If it is a multiline TextField, inputEl will always be null. Unless there are considerations on the differences between textarea and Input that I am not aware of, adding bind:this={inputEl} to the textarea seems to work.

@techniq
Copy link
Owner

techniq commented May 21, 2024

Hey @erlenddahl 👋. That's a good call out and should be fine to add bind:this{inputEl} to <textarea> and update the inputEl type to include HTMLTextAreaElement. Adding this additional type would require some conditional handling in some cases for property type handling, but nothing unexpected.

I would like to move more of the type handling from TextField to Input over time (see: #225).

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