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

IconComponent not applying css icon class properly

1 Answer 236 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arthur
Top achievements
Rank 1
Veteran
Arthur asked on 18 Dec 2020, 10:14 AM

Hi,

I have the following problem with Kendo UI's IconComponent:
When changing the name property of the IconComponent dynamically e. g. via a button, then the previous applied css icon class is not removed from the element's css class list. So after the first change, the element contains both css icon classes, the current and the previous one. I prepared a Stackblitz example to show the issue: https://stackblitz.com/edit/angular-oljhx8?file=app/app.component.ts

Am I doing something wrong, or is this an issue with the IconComponent itself?

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 22 Dec 2020, 08:25 AM

Hi Arthur,

In deed it is a problem in our kendo-angular-icons component. You can try show and hide icons with static names, as in this stackblitz sample. I've logged an enhancement issue in our github issue tracker, where you can subscribe for updates. Given the fact it is still version 0.4.0 of kendo-angular-icons , will assure you that fix will follow promptly.

As a small token of gratitude for a bug found, I've increased your Telerik points by 200.

Regards,
Ivan
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
Arthur
Top achievements
Rank 1
Veteran
Answers by
Ivan
Telerik team
Share this question
or