mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(button): use correct size on a dynamic button in an item (#18395)
fixes ##18085
This commit is contained in:
committed by
Brandy Carney
parent
58672fb221
commit
a3e23fc9fa
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user