Skip to content

fix(icons): load icons when properties initialize#1490

Open
OS-jacobbell wants to merge 2 commits intomainfrom
FW-6753
Open

fix(icons): load icons when properties initialize#1490
OS-jacobbell wants to merge 2 commits intomainfrom
FW-6753

Conversation

@OS-jacobbell
Copy link
Contributor

Description

A change to Stencil's task queueing caused component initialization events and render method to be called before Angular sets dynamic props. The loadIcon method is therefore called before src is set in some cases. Instead of relying on Stencil and Angular events to happen in a specific relative order, use a new feature in Stencil to watch for initial values of icon-setting properties.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation

Rationale / Problems Fixed

Fixes issue: ionic-team/ionic-framework#30629
where dynamic properties were not applied to icons.

Tests or Reproductions

Minimal test project from issue: https://stackblitz.com/~/github.com/andrzejpindor/ionic-icon-bindings-regression-repro?file=src/app/app.component.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant