You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works fine when I start dragging any item after the first, even if I switch with the first item it works fine.
It creates the following markup:
But when I start dragging from the first, I'll lose the styling because the plugin creates another item on its place and sets it to display: none, so the :first-child selector won't work anymore, and it loses the styling.
This gif shows what's happening:
Any workaround on this? Perhaps not creating the element with display: none in an option or something?
If this doesn't fit here, I'll try to ask on Stack Overflow.
The text was updated successfully, but these errors were encountered:
Hi.
I have a list of items that I want to sort, and I need the first element to be wider than all 3 others.
In order to do this, I have the following css:
It works fine when I start dragging any item after the first, even if I switch with the first item it works fine.
It creates the following markup:
But when I start dragging from the first, I'll lose the styling because the plugin creates another item on its place and sets it to
display: none
, so the:first-child
selector won't work anymore, and it loses the styling.This gif shows what's happening:
Any workaround on this? Perhaps not creating the element with
display: none
in an option or something?If this doesn't fit here, I'll try to ask on Stack Overflow.
The text was updated successfully, but these errors were encountered: