feat(menu): Add delay before closing nested menu after mouse leave
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
### Feature Description
**Problem**
When navigating through nested menu items, we must follow a tight path, otherwise it'll close the nested menu.
**Proposed Solution**
In the current behavior, after the mouse leave, the menu is closed.
If we add some delay, before closing the nested menu after the mouse leave event, we could leverage from better navigation.
**Sugestion**
Add an option (matMenuNestedCloseDelay) to change the behavior of closing the nested menu.
When this option is used, it should wait X miliseconds (similar to matTooltipShowDelay) before closing the nested menu after mouse leave.
Also add this option to [MatMenuDefaultOptions](https://material.angular.io/components/menu/api#MatMenuDefaultOptions) to allow override this behavior with injection token.
```
...
```
### Use Case
If I try to selected the 90 days options, througth the smallest path, it closes the nested menu.

**Desired Behavior**
Taken from [stackoverflow](https://stackoverflow.com/a/50953452) with similar issue.

コントリビューションガイド
調査の方向性
まず、ネストされた mat-menu でマウスが離れたときに閉じる挙動を追跡し、要求された遅延を matTooltipShowDelay と比較します。matMenuNestedCloseDelay を mat-menu と MatMenuDefaultOptions でどのように公開するかを定義し、メニューの既存のテストで遅延クローズの挙動と injection-token のオーバーライドを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100