Skip to content

vue3.js example does not animate like float example #1936

Closed

Description

@gusdn0828

Subject of the issue

If unsure if library bug, or questions use slack channel instead: https://gridstackjs.troolee.com/


I want to use this library in vue3.
After I dragged a item, it got the attr like this

style="transition: none 0s ease 0s;"

The animation of item's behind the dragging item does not work.
Vue demo also same, but basic demo is working.

vue demo's link:
https://gridstackjs.com/demo/vue3js.html
basic demo's link:
https://gridstackjs.com/

Please fix this bug.

Your environment

  • gridstack.js 5.0.0
  • HTML5 plugin
  • Chrome/Windows 10
  • Vue 3.2.25,
  • Vite 2.8.0

Steps to reproduce

  1. Enter this demo page
    https://gridstackjs.com/demo/vue3js.html

  2. Drag 0 item over 1 item

  3. Drag 1 item over 0 item

  4. So 0 item's animation doesn't work.

Expected behavior

Please fix the bug.

Activity

  1. changed the title [-]After i Dragged the Item, animation not worked[/-] [+]vue3,js example does not animate like float example[/+] on Feb 23, 2022
  2. adumesny commented on Feb 23, 2022

    @adumesny
    Member

    https://gridstackjs.com/demo/float.html animates when bottom object is pushed to grow the grid, but not in the vue demo https://gridstackjs.com/demo/vue3js.html

    not sure where you see style="transition: none 0s ease 0s;"

  3. changed the title [-]vue3,js example does not animate like float example[/-] [+]vue3.js example does not animate like float example[/+] on Feb 23, 2022
  4. arg-1138 commented on Feb 24, 2022

    @arg-1138

    style="transition: none 0s ease 0s;" is applied to every item grid-stack-item that has been dragged once. The first time it animates correctly but then after that inline style is applied it stops transitioning.

  5. adumesny commented on Dec 30, 2022

    @adumesny
    Member

    not seeing this issue anymore in 7.1.2 (window 10 Chrome)
    the only styles I see left after a drag are those, which is harmeless

    element.style {
        min-width: 0px;
        will-change: left, top;
    }
  6. added a commit that references this issue on Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions