palantir/blueprint

[v5] Popover not closing when navigating lazily loaded pages via React Router

開放

#6,518 建立於 2023年11月6日

 (2 則留言) (3 個反應) (0 位負責人)TypeScript (2,167 個分叉)batch import
P2Package: coreType: bughelp wanted

倉庫指標

星標
 (20,263 顆星)
PR 合併指標
 (平均合併 43天 10小時) (30 天內合併 27 個 PR)

描述

Environment

  • Package version(s): @blueprintjs/core 5.6.0
  • Operating System: Windows 10
  • Browser name and version: Chrome 118

Code Sandbox

https://codesandbox.io/p/sandbox/blueprint5-popover-issue-9zjj9x

Steps to reproduce

  1. Use the navbar menu to navigate to "Page 2"

Actual behavior

When using React Router to navigate to a lazily loaded page, the popover menu does not close and loses interactivity.

Expected behavior

The popover menu should close after the page transition.

Possible solution

No current solution to propose. We're currently migrating our code from Blueprint v4 to v5 and noticed this issue.

貢獻者指南