Skip to content

[5.x]: FieldLayout Designer bug when dragging fields #16619

@KlingeSean

Description

@KlingeSean

What happened?

Description

When i drag a field from the field selector but then change my mind, it still adds the field to the tab you've hovered closest to.
https://github.com/user-attachments/assets/a3e81c13-44a6-4291-a628-420723d0ed99

Steps to reproduce

1.Click on add field.
2.Drag field outside of fields popup.
3.Wait aprox 1 sec.
4.Change your mind.
5.Drag field back to popup and release left mouse button.

Expected behavior

Field just goes back into popup without adding it to my tab

Actual behavior

Field gets added to the tab as an invisible field, which is none removable unless you first save and go back to the fieldlayout designer

Craft CMS version

5.6.4

PHP version

8.2.22

Operating system and version

Linux 5.15.0-131-generic

Database type and version

MariaDB 10.11.8

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions