Vue.draggable: When clearing list of elements with nth-child CSS peudo element, the last element of each line is not dragabble

Created on 11 Jul 2017  Â·  6Comments  Â·  Source: SortableJS/Vue.Draggable

Do not know why, but when using these rules to clear elements each 4 elements, the last element of each line stay fix, not dragabble

image

.nbr-per-line-4 {
    width: 25%;
    float: left;
    &:nth-child(4n+1) {
        clear:left; // <---     if we comment this property, this will works
    }
}
    <div v-if="lookProductArray.length > 0" class="productListContainer">
        <draggable>
                    <div v-for="lookProduct in lookProductArray" class="product-card-wrapper nbr-per-line-4">
                        <product-card>
                           <!-- component content here -->
                      </product-card>
                    </div>
                <!-- </div> -->
        </draggable>
    </div>

Most helpful comment

@VernalVessel

Here is an example:
https://jsfiddle.net/Lazac92/vn5qt15m/

It is working in firefox, but not in chrome or safari.

All 6 comments

have you solve'd your problem? i can't address the issue with bare eyes, could you provide a fiddle plz?
https://jsfiddle.net/

me too! have you solved your problem?

+1

@VernalVessel

Here is an example:
https://jsfiddle.net/Lazac92/vn5qt15m/

It is working in firefox, but not in chrome or safari.

In this case an issue should be open for Sortable.js library as all DOM interaction are managed by this library.

Please try again using version 2.18.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mathlet0x picture mathlet0x  Â·  4Comments

fedenko picture fedenko  Â·  3Comments

iou90 picture iou90  Â·  3Comments

clemsontiger picture clemsontiger  Â·  3Comments

ghost picture ghost  Â·  3Comments