Form TextArea Throws Error onFocus

4 posts, 1 answers
  1. Kyle
    Kyle avatar
    39 posts
    Member since:
    Aug 2011

    Posted 05 Jan Link to this post

    https://stackblitz.com/edit/react-s8ugrr-dvxqcf?file=app/main.jsx

    When you click in the TextArea in the above StackBlitz, React throws a warning in the console:

    Warning: Received `true` for a non-boolean attribute `visited`.
     
    If you want to write it to the DOM, pass a string instead: visited="true" or visited={value.toString()}.
    at textarea
    at span
    at KendoTextArea (https://react-s8ugrr-dvxqcf.stackblitz.io/turbo_modules/@progress/kendo-react-inputs@4.1.0/dist/npm/textarea/TextArea.js:40:33)
    at div
    at KendoReactFieldWrapper (https://react-s8ugrr-dvxqcf.stackblitz.io/turbo_modules/@progress/kendo-react-form@4.1.0/dist/npm/FieldWrapper.js:13:24)
    at FormTextArea (https://react-s8ugrr-dvxqcf.stackblitz.io/~/app/main.jsx:42:13)
    at KendoReactField (https://react-s8ugrr-dvxqcf.stackblitz.io/turbo_modules/@progress/kendo-react-form@4.1.0/dist/npm/Field.js:30:22)
    at div
    at fieldset
    at form
    at KendoReactFormElement (https://react-s8ugrr-dvxqcf.stackblitz.io/turbo_modules/@progress/kendo-react-form@4.1.0/dist/npm/FormElement.js:33:22)
    at KendoReactForm (https://react-s8ugrr-dvxqcf.stackblitz.io/turbo_modules/@progress/kendo-react-form@4.1.0/dist/npm/Form.js:87:28)
    at App
  2. Answer
    Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 06 Jan Link to this post

    Hello, Kyle,

    This is a known warning and I have added your report to the issue:

    https://github.com/telerik/kendo-react/issues/791

    As this is just a warning for an attribute, the component should be working as expected and the warnings are only shown in develop mode, not in production.

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

  3. Kyle
    Kyle avatar
    39 posts
    Member since:
    Aug 2011

    Posted 06 Jan in reply to Stefan Link to this post

    Glad to know!  I wasn't concerned.  I just wanted to let you guys know.

    Thanks for everything.

  4. Kyle
    Kyle avatar
    39 posts
    Member since:
    Aug 2011
Back to Top