Hovering Button with Tooltip in a PreviewTrigger Popover closes the Popover

オープン
#10,460 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #10465 @waterWang による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
61/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
react, typescript

調査の方向性

まず、src/App.tsx にあるリンク先の StackBlitz reproduction を実行し、ホバー時に PreviewTrigger Popover、Button、Tooltip がどのように相互作用するかを確認します。Popover が開いたままでも Tooltip が通常どおり表示されることを、issue で説明されているタイムゾーン設定のアイコンボタンのシナリオも含めて確認してください。

索引モデルが issue の本文から書いたものです。

説明

Provide a general summary of the issue here

When a Button inside the PreviewTrigger's Popover has a Tooltip, hovering the Button closes the Popover immediately.

🤔 Expected Behavior?

The Tooltip should display per usual and the PreviewTrigger's Popover should remain open.

😯 Current Behavior

The PreviewTrigger Popover closes when the user's pointer hovers over the Button that is used as a Tooltip trigger.

💁 Possible Solution

No response

🔦 Context

In a Popover component that displays user's locale and UTC date strings, I'd like to include a gear icon Button that links to timezone settings; to remain accessible the icon button needs a RAC Tooltip i.e. "Timezone settings".

🖥️ Steps to Reproduce

https://stackblitz.com/edit/sb1-m6jng7rc?file=src%2FApp.tsx

Version

1.20.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

主要言語
TypeScript
スター
16k
フォーク
1.6k
平均マージ
3日 9時間
マージ済み PR(30日)
45

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

adobe/react-spectrum のほかの issue

adobe/react-spectrum の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。