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

Error with DropdownButton after update to Angular 9

3 Answers 287 Views
DropDownButton
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 10 Apr 2020, 09:01 PM

After updating to Angular 9, none of the dropdown buttons are working. 

I have the simple example:

<kendo-dropdownbutton [data]="data">
User Settings
</kendo-dropdownbutton>

 

And when the page renders the console shows:

core.js:6189 ERROR TypeError: Cannot read property 'nativeElement' of undefined
    at DropDownButtonComponent.get focused [as focused] (index.js:2688)
    at DropDownButtonComponent_HostBindings (index.js:2905)
    at setHostBindingsByExecutingExpandoInstructions (core.js:11535)
    at refreshView (core.js:11904)
    at refreshComponent (core.js:13295)
    at refreshChildComponents (core.js:11586)
    at refreshView (core.js:11909)
    at renderComponentOrTemplate (core.js:11983)
    at tickRootContext (core.js:13457)
    at detectChangesInRootView (core.js:13491)
    at RootViewRef.detectChanges (core.js:15182)
    at ApplicationRef.tick (core.js:42907)
    at ApplicationRef._loadComponent (core.js:42957)
    at ApplicationRef.bootstrap (core.js:42883)
    at core.js:42475

When I click the button, just a small empty popup shows.

I am using:

"@progress/kendo-angular-dropdowns": "^4.2.6",

"@progress/kendo-angular-buttons": "^5.4.0",

 

Does anyone know what might be the issue here? 
Thanks.

3 Answers, 1 is accepted

Sort by
0
Tom
Top achievements
Rank 1
answered on 11 Apr 2020, 03:10 AM

May be related to this bug that someone raised similarly for <kendo-splitbutton> on Angular 9:

https://github.com/telerik/kendo-angular/issues/2838

0
Tom
Top achievements
Rank 1
answered on 13 Apr 2020, 12:04 PM
[quote]Tom said:

May be related to this bug that someone raised similarly for <kendo-splitbutton> on Angular 9:

https://github.com/telerik/kendo-angular/issues/2838

[/quote]

It was the same bug and was fixed by the updated version of kendo-button referenced in that bug.

0
Accepted
Martin
Telerik team
answered on 14 Apr 2020, 10:15 AM

Hi Tom,

Thank you for the provided feedback.

Yes, this is a known issue that was already fixed in the latest 5.4.1 version of the Buttons package:

https://www.telerik.com/kendo-angular-ui-develop/components/buttons/changelog/

Let me know if I can provide any further assistance.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
DropDownButton
Asked by
Tom
Top achievements
Rank 1
Answers by
Tom
Top achievements
Rank 1
Martin
Telerik team
Share this question
or