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

React RadioButton does not have a tooltip property

1 Answer 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ruiyi
Top achievements
Rank 1
ruiyi asked on 07 Nov 2020, 07:19 AM
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

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 09 Nov 2020, 08:44 AM

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

Tags
General Discussions
Asked by
ruiyi
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or