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

kendo.tooltip - Uncaught TypeError: Cannot read property 'split' of undefined

1 Answer 836 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Arkadiusz
Top achievements
Rank 1
Arkadiusz asked on 16 Apr 2021, 08:26 AM

There is a code snippet in the _removeDescribedBy method

 

arrayAttr = target.attr (DESCRIBEDBY) .split ('')

In a specific, unknown situation, undefined is returned from the attr method, which generates an error with the following content:
Uncaught TypeError: Cannot read property 'split' of undefined

The solution is simple:
arrayAttr = (target.attr (DESCRIBEDBY) || '') .split ('')


Is it possible for the next version of kendo.ui to appear in all places where such a fragment of the code is protected against unedfined?

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 21 Apr 2021, 06:42 AM

Hello Arkadiusz,

Thank you for reaching out and providing a suggestion on fixing the issue. The issue reported is a known one and has already been reported :

https://github.com/telerik/kendo-ui-core/issues/6374

It has already been fixed and the fix is scheduled to be included in the next official release.

Let me know if I can be of further help.

Regards,
Aleksandar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ToolTip
Asked by
Arkadiusz
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Share this question
or