IconComponent not applying css icon class properly

2 posts, 0 answers
  1. Arthur
    Arthur avatar
    6 posts
    Member since:
    Jun 2020

    Posted 18 Dec 2020 Link to this post

    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?

  2. Ivan
    Admin
    Ivan avatar
    41 posts

    Posted 22 Dec 2020 Link to this post

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

Back to Top