nextui-org / nextui

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

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

Open yevhenzar opened 1 month ago

yevhenzar commented 1 month 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 1 month ago

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

wingkwong commented 1 month ago

Seems the entire logic is missing

awesome-pro commented 1 month 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 1 month ago

@abhinandan-verma I tried already.