Coder Social home page Coder Social logo

Comments (6)

coyoteecd avatar coyoteecd commented on July 29, 2024 1

@xidedix
Sorry for the delayed response, I had to wait for a good time to upgrade our app to Angular 8 to be able to use 2.5.3.

The pipe fix works fine. There is still one left-over however, you'd need to include it here as well:

<i *ngIf="helper.hasIcon(item)" [ngClass]="helper.getIconClass(item)"></i>
<ng-container>{{item.name}}</ng-container>
<span *ngIf="helper.hasBadge(item)" [ngClass]="helper.getBadgeClass(item)">{{ item.badge.text }}</span>
. That component still uses the old helper and consequently triggers the same removeClass/addClass cycle on every key press.

from coreui-angular.

coyoteecd avatar coyoteecd commented on July 29, 2024

Related issues in the Angular repo:
angular/angular#25518
angular/angular#28201
angular/angular#27804

from coreui-angular.

xidedix avatar xidedix commented on July 29, 2024

Hi @coyoteecd
Thanks for the heads-up and comprehensive analysis of the issue.
We are going to investigate this further.

PR welcome!

from coreui-angular.

xidedix avatar xidedix commented on July 29, 2024

We're currently testing the use of custom pipes instead of helper functions in templates for badge/icon classes. Seems promising.

from coreui-angular.

xidedix avatar xidedix commented on July 29, 2024

@coyoteecd
Please update to 2.5.3 and let us know if it helps in your case.

from coreui-angular.

xidedix avatar xidedix commented on July 29, 2024

@coyoteecd done - please update to 2.5.5

from coreui-angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.