This is a migrated thread and some comments may be shown as answers.

FloatingLabel returns k-state-empty when value is 0

2 Answers 204 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
Veteran
John asked on 22 Mar 2021, 09:38 PM

FloatingLabel returns the k-state-empty class when value is 0. This is a bug as 0 is a valid value, likely due to a conditional on numericValue.

My temporary fix is editorValue={numericValue !== undefined && numericValue !== null ? 1 : 0}

You can see the bug in action if you set the numeric value to 0 in this example:  https://www.telerik.com/kendo-react-ui/components/inputs/floating-labels/

Thanks.

2 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
Veteran
answered on 22 Mar 2021, 10:38 PM

update to my temp fix:

My temporary fix is editorValue={numericValue !== undefined && numericValue !== null ? "1" : ""}

0
Accepted
Krissy
Telerik team
answered on 23 Mar 2021, 10:19 AM

Hi John,

I confirm that this is indeed a bug. I've logged an issue, where we will keep track of the status of this bug: https://github.com/telerik/kendo-react/issues/891 

As a thank you for bringing our attention to this, I've added 1000 points to your account.

The workaround you mentioned is a valid one until the issue is resovled.

Apologies for the inconvenience caused.

Regards,
Krissy
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/.

Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Veteran
Answers by
John
Top achievements
Rank 1
Veteran
Krissy
Telerik team
Share this question
or