fix(button): use correct size on a dynamic button in an item (#18395)

fixes ##18085
This commit is contained in:
Vlad Topala
2019-06-10 23:47:32 +03:00
committed by Brandy Carney
parent 58672fb221
commit a3e23fc9fa
5 changed files with 103 additions and 19 deletions

View File

@@ -108,14 +108,6 @@ export class Item implements ComponentInterface {
}
componentDidLoad() {
// Change the button size to small for each ion-button in the item
// unless the size is explicitly set
Array.from(this.el.querySelectorAll('ion-button')).forEach(button => {
if (button.size === undefined) {
button.size = 'small';
}
});
// Check for multiple inputs to change the position to relative
const inputs = this.el.querySelectorAll('ion-select, ion-datetime');
this.multipleInputs = inputs.length > 1 ? true : false;