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

[4.x]: Blocks within Matrix field lose layout when being dragged and dropped #12909

Closed
jonleverrier opened this issue Mar 16, 2023 · 3 comments
Closed
Assignees

Comments

@jonleverrier
Copy link

jonleverrier commented Mar 16, 2023

What happened?

Description

When fields within a matrix field have been assigned a layout width (1,2, or 3 columns), when being dragged and dropped they lose their defined layout.

New.Recording.Mar.16.2023.0130.PM.mp4

Steps to reproduce

  1. Create a matrix field
  2. Add 4 text fields to it and assign the column width to 1 for each field so the 4 fields appear in 1 row
  3. Assign the field to an entry
  4. Add 4 or 5 rows and drag and drop the fields around
  5. Layout is lost whilst dragging (they take up 4 columns)

Expected behavior

Layout to be preserved when dragging and dropping blocks within matrix fields

Actual behavior

Layout is not preserved when dragging and dropping blocks within matrix fields

Craft CMS version

v4.4.2

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@i-just
Copy link
Contributor

i-just commented Mar 16, 2023

Hi, thanks for reporting. I created PRs to adjust this for both Craft 3 and 4.

@jonleverrier jonleverrier changed the title [4.x]: Blocks within Matrix fields loose layout when being dragged and dropped [4.x]: Blocks within Matrix field loose layout when being dragged and dropped Mar 16, 2023
@jonleverrier jonleverrier changed the title [4.x]: Blocks within Matrix field loose layout when being dragged and dropped [4.x]: Blocks within Matrix field lose layout when being dragged and dropped Mar 16, 2023
@brandonkelly
Copy link
Member

3.8.3 and 4.4.3 are out with the fix!

@jonleverrier
Copy link
Author

@i-just @brandonkelly Super! Thanks for the fast turn around.

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

No branches or pull requests

3 participants