Close out any sibling menu trigger menus.
()
| 255 | |
| 256 | /** Close out any sibling menu trigger menus. */ |
| 257 | private _closeSiblingTriggers() { |
| 258 | if (this._parentMenu) { |
| 259 | // If nothing was removed from the stack and the last element is not the parent item |
| 260 | // that means that the parent menu is a menu bar since we don't put the menu bar on the |
| 261 | // stack |
| 262 | const isParentMenuBar = |
| 263 | !this.menuStack.closeSubMenuOf(this._parentMenu) && |
| 264 | this.menuStack.peek() !== this._parentMenu; |
| 265 | |
| 266 | if (isParentMenuBar) { |
| 267 | this.menuStack.closeAll(); |
| 268 | } |
| 269 | } else { |
| 270 | this.menuStack.closeAll(); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | /** Get the configuration object used to create the overlay. */ |
| 275 | private _getOverlayConfig() { |
no test coverage detected