mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
fix(menu): fix menu item fade in order animation
fixes #5014 PiperOrigin-RevId: 568949388
This commit is contained in:
parent
57f7ff51ed
commit
73eb15ebee
@ -255,8 +255,8 @@ export abstract class Menu extends LitElement {
|
||||
* helpful for calculating some animation calculations.
|
||||
*/
|
||||
private get openDirection(): 'UP'|'DOWN' {
|
||||
const menuCornerBlock = this.menuCorner.split('_')[0];
|
||||
return menuCornerBlock === 'START' ? 'DOWN' : 'UP';
|
||||
const menuCornerBlock = this.menuCorner.split('-')[0];
|
||||
return menuCornerBlock === 'start' ? 'DOWN' : 'UP';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user