nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
22k stars 1.54k forks source link

[BUG] - Tooltip shouldBlockScroll doesn't work #3474

Open yevhenzar opened 4 months ago

yevhenzar commented 4 months ago

NextUI Version

2.4.2

Describe the bug

Tooltip's prop shouldBlockScroll doesn't work as intended, scroll is not blocked and I can still scroll content below tooltip

Your Example Website or App

https://codesandbox.io/p/devbox/great-haslett-83r6xg?workspaceId=3d68e848-d3a4-4835-979a-3a4880722b13

Steps to Reproduce the Bug or Issue

You can check this behaviour on sandbox, I've attached

Expected behavior

When i pass shouldBlockScroll={true} to Tooltip component, it should block scroll below. As it works in Dropdown component, for example

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

linear[bot] commented 4 months ago

ENG-1141 [BUG] - Tooltip shouldBlockScroll doesn't work

wingkwong commented 4 months ago

Seems the entire logic is missing

awesome-pro commented 4 months ago

@yevhenzar I believe first you should retry after correcting the props, there is no such prop in tooltip

Screenshot 2024-07-15 at 8 40 21 PM
wingkwong commented 4 months ago

@abhinandan-verma I tried already.

wingkwong commented 2 months ago

reopening - the PR involves breaking change. will reschedule the release in v2.5.0.