mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
fix(fab): using <a> as fab
This commit is contained in:
@ -301,7 +301,7 @@ export class FabContainer {
|
||||
*/
|
||||
canActivateList(ev: any): boolean {
|
||||
if (this._fabLists.length > 0 && this._mainButton && ev.target) {
|
||||
let ele = ev.target.closest('ion-fab>button');
|
||||
let ele = ev.target.closest('ion-fab>[ion-fab]');
|
||||
return (ele && ele === this._mainButton.getNativeElement());
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user