Skip to content

Gridstack not respecting gs-y attribute on initialising #1535

@Rainbowlemon

Description

@Rainbowlemon

Subject of the issue

Items in pre-existing HTML are being ordered incorrectly with respect to their gs-y attributes once GridStack.init() is called.

Your environment

V3.1.2, using HTML5
Chrome 87.0.4280.88

Steps to reproduce

https://jsfiddle.net/Rainbowlemon/721ce803/44/
Sometimes the order is correct if you reorder the HTML, but sometimes it isn't.

Expected behavior

Items should be ordered according to their gs-y attribute

Actual behavior

Items are being ordered semi-randomly and item order is being influenced by its position in the DOM on gridstack init

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions