fix(button): allow any element type to use the "icon-only" slot (#22168)

This commit is contained in:
Matthias Max
2020-10-07 00:40:29 +02:00
committed by GitHub
parent 1878c8e7e0
commit c454c84ef4
2 changed files with 20 additions and 19 deletions

View File

@ -137,7 +137,7 @@ export class Button implements ComponentInterface, AnchorInterface, ButtonInterf
}
private get hasIconOnly() {
return !!this.el.querySelector('ion-icon[slot="icon-only"]');
return !!this.el.querySelector('[slot="icon-only"]');
}
private get rippleType() {