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

`align-items: baseline` causes odd behaviour

Aperta
#574 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
299
Fork
159
Merge medio
4g 6h
PR unite (30g)
4

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.