mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(menu): pass platform to menu type
This commit is contained in:
@ -294,7 +294,7 @@ export class MenuController {
|
||||
* @private
|
||||
*/
|
||||
static create(type: string, menuCmp: Menu, platform: Platform) {
|
||||
return new menuTypes[type](menuCmp);
|
||||
return new menuTypes[type](menuCmp, platform);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user