Animated popups can get stuck open if mouse enters then leaves very quickly
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
ソースファイルもテストも指定されていません。まず、提供された Trigger の例を fade トランジションと素早いマウス移動で再現し、その後 hover と leave の動作を追跡してください。ポインターが領域を離れた後、素早い進入と退出の最中も含めて、ポップアップが確実に閉じれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Pretty much what the title says. I'm on version 4.0.0-alpha.7. Given an element like this:
<Trigger
action={["hover"]}
popup={<span>Hello There</span>}
popupTransitionName="fade"
mouseLeaveDelay={0}
popupAlign={{
points: ["tc", "bc"],
offset: [0, 3]
}}
>
<p>Test</p>
</Trigger>
And a style like the fade animation from rc-animate's examples. Or even something simple like this:
.rc-trigger-popup {
display: inline-block;
opacity: 1;
transition: opacity 1s;
}
.rc-trigger-popup-hidden {
display: none;
}
.fade-enter-active {
opacity: 1 !important;
}
.fade-leave-active {
opacity: 0;
}
For the most part the trigger/popup works normally. Hovering over the "Test" text creates the popup, which fades in, and then fades out when you stop hovering over the text. The issue comes up when you move your mouse quickly over the text. Sometimes it works normally, other times the popup gets stuck open even after the mouse has left. Increasing the mouseLeaveDelay seems to mitigate the problem, but that's not really a solution.
- 主要言語
- TypeScript
- スター
- 391
- フォーク
- 245
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react-component/trigger のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
react-component/trigger#593 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
react-component/trigger#623 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
react-component/trigger#618 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
react-component/trigger#555 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
react-component/trigger#550 · コメント 1 件 ·
react-component/trigger の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/inspector#2458 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
carbon-design-system/ibm-products#9907 ·