Why does the type of value prop in the TextAreaChangeEvent event specify more than just string? Why number?
I noticed that the value prop of the TextAreaChangeEvent is defined as string | number | string[].
When will this value be number or string[]?
Won't it always be string due to the fact that it's a text area input?
2 comments
ADMIN
Silviya
Posted on:22 Mar 2021 15:07
Hello Ryan,
You are right. The value type inside the event will always be a string. We will remove the other types as they are not necessary.
Thank you for bringing this to our attention. I updated your Telerik points as a token of gratitude
Best Regards,
Silviya
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
ADMIN
Stefan
Posted on:16 Mar 2021 09:51
Hello, Ryan,
The TextArea is working with strings, but it can work with string arrays as well:
Still, event, in that case, the value type inside the event will be a string.
We will investigate and update the type if needed.
Regards,
Stefan
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.