Button click error

2 Answers 230 Views
Button
Ion
Top achievements
Rank 1
Ion asked on 21 Jul 2021, 07:38 AM

Hi,

I updated Telerik Blazor to version 2.25.0

The js file is served from _content folder

<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script>

When I click any button from application I get the error

telerik-blazor.js:49 Uncaught TypeError: Cannot read property 'getAttribute' of undefined
    at e.value (telerik-blazor.js:49)
    at e.i.close (telerik-blazor.js:49)
    at HTMLDocument.i.onMouseDown (telerik-blazor.js:49)

I had no problems with the old version (2.24.0)

Any idea?

Thanks,

Ion

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Jul 2021, 05:45 PM

Hi,

See this article to troubleshoot similar upgrade problems: https://docs.telerik.com/blazor-ui/troubleshooting/js-errors

If this does not help, open a support ticket and send us a runnable sample project so we can investigate.

 

Regards,
Marin Bratanov
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.

0
Alexandru
Top achievements
Rank 1
Iron
answered on 22 Jul 2021, 10:55 AM

After some research, I found the issue: I have a TelerikTooltip available at top-level in application which caused the error :) Not sure why, I commented for the moment and the error has gone.

<TelerikTooltip TargetSelector="#cor_info>i[title]" Position="@TooltipPosition.Top" ShowOn="@TooltipShowEvent.Hover"></TelerikTooltip>

Thanks,

Ion

Marin Bratanov
Telerik team
commented on 22 Jul 2021, 08:16 PM

Probably because of this issue https://feedback.telerik.com/blazor/1520299-tooltip-with-no-targetselector-throws-a-javascript-error
Tags
Button
Asked by
Ion
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Alexandru
Top achievements
Rank 1
Iron
Share this question
or