Skip to content

Item should not allow drop when grid full #1571

@NealonF

Description

@NealonF

Subject of the issue

when grid2 is full (because say item takes entire view) you should NOT be able to drop another item in there. it sort of does that because you can see grid1 growing back, but item doesn't render in there for some reason. if you drag from grid1 to outside (top, left, etc..) you see the expected behavior.

Your environment

gridstack v3.1.3 with gridstack-jq-js and gristack.min.css as only references.
Chrome v87.0.4280.141 (Official Build) (64-bit)

Steps to reproduce

https://jsfiddle.net/adumesny/ks8gmqo4/

Expected behavior

Should render item after rejecting placement.

Actual behavior

Creates a space in the item's original grid location but does not render the item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions