mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(popup): Removed button type, it's throwing console errors
References #183
This commit is contained in:
@ -266,6 +266,7 @@ const OVERLAY_TYPE = 'popup';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'ion-popup-default'
|
selector: 'ion-popup-default'
|
||||||
})
|
})
|
||||||
|
// TODO add button type to button: [type]="button.type"
|
||||||
@View({
|
@View({
|
||||||
template:
|
template:
|
||||||
'<backdrop (click)="_cancel($event)" tappable disable-activated></backdrop>' +
|
'<backdrop (click)="_cancel($event)" tappable disable-activated></backdrop>' +
|
||||||
@ -279,7 +280,7 @@ const OVERLAY_TYPE = 'popup';
|
|||||||
'<input type="{{inputType || \'text\'}}" placeholder="{{inputPlaceholder}}" *ng-if="showPrompt" class="prompt-input">' +
|
'<input type="{{inputType || \'text\'}}" placeholder="{{inputPlaceholder}}" *ng-if="showPrompt" class="prompt-input">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="popup-buttons" *ng-if="buttons.length">' +
|
'<div class="popup-buttons" *ng-if="buttons.length">' +
|
||||||
'<button *ng-for="#button of buttons" (click)="buttonTapped(button, $event)" [inner-html]="button.text" [type]="button.type"></button>' +
|
'<button *ng-for="#button of buttons" (click)="buttonTapped(button, $event)" [inner-html]="button.text"></button>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</popup-wrapper>',
|
'</popup-wrapper>',
|
||||||
directives: [FORM_DIRECTIVES, NgClass, NgIf, NgFor, Button]
|
directives: [FORM_DIRECTIVES, NgClass, NgIf, NgFor, Button]
|
||||||
|
Reference in New Issue
Block a user