Closed congyaqwq closed 1 year ago
You are welcome to submit a PR with a fix
@congyaqwq can you help me understand this issue better?
In your codesandbox, everything seems to be scrolling correctly. The page won't scroll when the cursor is inside the popover, but isn't this the correct behavior?
And I do not see any effect on when un-commenting line 16 (position: relative
)
@congyaqwq can you help me understand this issue better?
In your codesandbox, everything seems to be scrolling correctly. The page won't scroll when the cursor is inside the popover, but isn't this the correct behavior?
And I do not see any effect on when un-commenting line 16 (
position: relative
)
Sorry, I tried to solve this problem by finding which version it changed, now it's version is 5.8.2
, you can see it 's behavior
@congyaqwq can you help me understand this issue better? In your codesandbox, everything seems to be scrolling correctly. The page won't scroll when the cursor is inside the popover, but isn't this the correct behavior? And I do not see any effect on when un-commenting line 16 (
position: relative
)Sorry, I tried to solve this problem by finding which version it changed, now it's version is
5.8.2
, you can see it 's behavior
@congyaqwq Are you sure about this working before 5.1.0 ? Can you provide a codesandbox where it works? as I tried it and it seems to be persistent.
@congyaqwq can you help me understand this issue better? In your codesandbox, everything seems to be scrolling correctly. The page won't scroll when the cursor is inside the popover, but isn't this the correct behavior? And I do not see any effect on when un-commenting line 16 (
position: relative
)Sorry, I tried to solve this problem by finding which version it changed, now it's version is
5.8.2
, you can see it 's behavior@congyaqwq Are you sure about this working before 5.1.0 ? Can you provide a codesandbox where it works? as I tried it and it seems to be persistent.
https://codesandbox.io/s/zealous-ellis-05egsk?file=/src/App.tsx:417-429 In version 5.10.1, It works. I test it in codesandbox, but in my local env, It still did not work.
Thank you for your help.
@congyaqwq I found the issue and here is a PR that fixes it https://github.com/mantinedev/mantine/pull/3576, let me know if it works with you 🙏
I didn't put flip
middleware before shift
as it didn't affect this issue but we should address it too just in case
@congyaqwq I found the issue and here is a PR that fixes it #3576, let me know if it works with you 🙏
I didn't put
flip
middleware beforeshift
as it didn't affect this issue but we should address it too just in case
yep, It works, thanks !
What package has an issue
@mantine/core
Describe the bug
2 issues In a scrollable element
Popover.Dropdown
won't scroll withPopover.Target
withoutposition: relative
;Popover
withwithinPortal
props won't scroll in scrollable element even it'sposition
isrelative
.What version of @mantine/hooks page do you have in package.json?
5.8.2
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/gifted-bessie-im2ocp?file=/src/App.tsx
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
Before 5.1.0 maybe, there comes no bug with
Popover
( with no need forposition: relative
); Maybe problem in fileuseFloatingAutoUpdate.tsx
also,flip
middleware should use beforeshift
from https://floating-ui.com/docs/flip