Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

useHover regression from @floating-ui/react@0.27.6 to @floating-ui/react@0.27.7 #3368

Open
@michaelbull

Description

@michaelbull

Describe the bug

I've observed a regression in@floating-ui/react, that I've managed to pinpoint occurring between releases0.27.6 to0.27.7, regardinguseHovers behaviour. The regression remains even on the latest release.

Therelease notes have a couple of potentially related fixes:

  • fix(useHover): clean up blockPointerEvents when opened with click after hover
  • fix(useHover): prevent floating element unexpectedly closing when close to reference element when not using safePolygon() and a close delay

I suspect its the second one, which would bethis commit, however this is a shot in the dark.

To Reproduce

https://codesandbox.io/p/sandbox/strange-pateu-qcrtfw

Steps to reproduce the behavior:

  1. Use version 0.27.6 (linked in codesandbox)
  2. Hover the button in the example
  3. Observe that two tooltips render (one above & one below the button)
  4. Hover your cursor over the tooltips
  5. Observe that the tooltipsdo not disappear whilst your mouse is over them - you can select their text and they remain
  6. Install version 0.27.7 (edit package.json in codesandbox)
  7. Hover the button in the example
  8. Observe that the tooltips still render
  9. Hover your cursor over the tooltips
  10. Observe that the tooltipsalways disappear after the specified delay (400ms) even if you have your mouse over them

Expected behavior A clear and concise description of what you expected to
happen.

I expect the tooltips to remain whilst my mouse is over them, which is how it worked in 0.26.6 and before.

Screenshots If applicable, add screenshots to help explain your problem.

Context:

  • OS: Xubuntu
  • Browser Brave
  • Version 1.8.120

Additional context Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp