Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bounded Layout is broken after upgrade to v1.4.4 #1990

Open
fpsqdb opened this issue Nov 27, 2023 · 7 comments
Open

Bounded Layout is broken after upgrade to v1.4.4 #1990

fpsqdb opened this issue Nov 27, 2023 · 7 comments

Comments

@fpsqdb
Copy link

fpsqdb commented Nov 27, 2023

Describe the bug

cannot drag item, and the dragged item will automatically move to the first position

Your Example Website or App

https://codesandbox.io/s/cocky-andras-hshv2c?file=/src/ShowcaseLayout.js

Steps to Reproduce the Bug or Issue

drag any item.

Expected behavior

can drag item to ajust position

react-grid-layout library version

1.4.4

Operating System Version

windows

Browser

Chrome

Additional context

No response

Screenshots or Videos

GIF 2023-11-27 13-09-57

@madscientist111
Copy link

Yep, we are facing the same issue as well

@nconfrey
Copy link

Downgrading to ~1.3.0 fixes this issue. Here's another codepen showing the problem: https://codesandbox.io/s/5nevr?file=/src/App.js

The latest release you can't resize or drag any of the items :(

@pbanker
Copy link

pbanker commented Dec 7, 2023

I'm having the same issue, but downgrading to 1.3.0 worked

@benedict-jackson
Copy link

I started getting this after upgrading from react 17 to 18.

Reverting the createRoot bit seemed to fix it again, so not sure if the draggable library has been affected by changes in the rendering engine?

@grigorischristainas
Copy link

We are having similar issues (especially on resize, item seems to not follow the cursor) after upgrading to React 18.

@currents-jantu
Copy link
Contributor

currents-jantu commented Feb 2, 2024

Having similar issues, it's a regression in containerPadding change. One workaround it to pass containerPadding=[0,0]

@Fiorello
Copy link

Fiorello commented Mar 5, 2024

Downgrade to 1.4.3 works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants