adopted-ember-addons / adopted-ember-addons/ember-sortable

`align-items: baseline` causes odd behaviour

Offen
#574 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
299
Forks
159
Ø Merge
4 T. 6 Std.
Gemergte PRs (30 T.)
4

Beschreibung

**Describe the bug**
When a sortable list has `align-items: baseline` as part of it's CSS, items jump to a different position when dragging begins and jump back when dragging ends.

Also I am seeing behaviour where an item is moved to the beginning of the row when it wasn't interacted with.

**To Reproduce**

Create a sortable flex list in a grid with `align-items: baseline`

**Expected behavior**
Items should remain in their rendered position and move predictably.

**Screenshots**

https://github.com/user-attachments/assets/a3987c1b-d3b3-4b5c-86d8-12f99439e941

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.