mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -104,7 +104,7 @@ export class Button implements ComponentInterface {
|
||||
@Listen('click')
|
||||
onClick(ev: Event) {
|
||||
if (this.type === 'button') {
|
||||
return openURL(this.win, this.href, ev, this.routerDirection);
|
||||
openURL(this.win, this.href, ev, this.routerDirection);
|
||||
|
||||
} else if (hasShadowDom(this.el)) {
|
||||
// this button wants to specifically submit a form
|
||||
@@ -122,7 +122,6 @@ export class Button implements ComponentInterface {
|
||||
fakeButton.remove();
|
||||
}
|
||||
}
|
||||
return Promise.resolve(false);
|
||||
}
|
||||
|
||||
private onFocus = () => {
|
||||
|
||||
@@ -187,7 +187,7 @@ export class Toast implements ComponentInterface, OverlayInterface {
|
||||
<div class="toast-message">{this.message}</div>
|
||||
}
|
||||
{this.showCloseButton &&
|
||||
<ion-button fill="clear" class="toast-button ion-activatable" onClick={() => this.dismiss(undefined, 'cancel')}>
|
||||
<ion-button fill="clear" class="toast-button" onClick={() => this.dismiss(undefined, 'cancel')}>
|
||||
{this.closeButtonText || 'Close'}
|
||||
</ion-button>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user