mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(buttons): don't set button type attribute from buttons
this is duplicated code, it is already set in toolbar
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, Element } from '@stencil/core';
|
||||
import { Component } from '@stencil/core';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -8,15 +8,6 @@ import { Component, Element } from '@stencil/core';
|
||||
}
|
||||
})
|
||||
export class Buttons {
|
||||
@Element() private el: HTMLElement;
|
||||
|
||||
componentDidLoad() {
|
||||
const buttons = this.el.querySelectorAll('ion-button') as any;
|
||||
for (let i = 0; i < buttons.length; i++) {
|
||||
buttons[i].setAttribute('button-type', 'bar-button');
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return <slot></slot>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user