Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class EuiIconClass extends PureComponent<
EuiIconProps & WithEuiThemeProps,
State
> {
isMounted = true;
isMounted = false;
constructor(props: EuiIconProps & WithEuiThemeProps) {
super(props);

Expand All @@ -149,6 +149,7 @@ export class EuiIconClass extends PureComponent<
}

componentDidMount() {
this.isMounted = true;
const { type } = this.props;

if (isEuiIconType(type) && this.state.icon == null) {
Expand Down
3 changes: 3 additions & 0 deletions upcoming_changelogs/6166.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed a bug in some development environments which prevented `EuiIcon` from loading icons asynchronously