FloatingLabel returns k-state-empty when value is 0

3 posts, 1 answers
  1. John
    John avatar
    12 posts
    Member since:
    May 2019

    Posted 22 Mar Link to this post

    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/


  2. John
    John avatar
    12 posts
    Member since:
    May 2019

    Posted 22 Mar in reply to John Link to this post

    update to my temp fix:

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

  3. Answer
    Krissy avatar
    23 posts

    Posted 23 Mar Link to this post

    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.

    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/.

Back to Top