React RadioButton does not have a tooltip property

2 posts, 0 answers
  1. ruiyi
    ruiyi avatar
    1 posts
    Member since:
    Nov 2020

    Posted 07 Nov 2020 Link to this post

    When I using a radiobutton component, i want to show the hint like the screenshot image, easy to tell the user what the radionbutton's function. here is my code:
    <RadioButton
              value="2"
              name="radio-email2"
              onChange={handleDefaultEmail}
              title="set as default Email"
    />
    the title property works, but there is a error reported:
    TS2322: Type '{ value: string; name: string; checked: boolean; onChange: (event: RadioButtonChangeEvent) => void; tabIndex: number; title: string; }' is not assignable to type 'IntrinsicAttributes & RadioButtonProps & RefAttributes<RadioButtonHandle>'.
    Property 'title' does not exist on type 'IntrinsicAttributes & RadioButtonProps & RefAttributes<RadioButtonHandle>'.
    It works so it's not a problem as I turning the warning off, just a little bit of advice that may be the RadioButton can include this property to support the tooltip showing when the mouse pointer focus on in the future
  2. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 09 Nov 2020 Link to this post

    Hello, Ruiyi,

    Thank you for bringing this to our attention.

    We agree that the RadioButton should accept the title attribute or any other standard attribute that can be set to a standard HTML RadioButton.

    I have logged a task for this and you can monitor the progress in GitHub:

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

    I have also added some Telerik points to your account for reporting this.

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

Back to Top