Skip to content

Custom drag element of type button doesn't work #2677

Closed

Description

@gili-lumigo

Subject of the issue

When using a custom handler to be an element of type button, The drag doesn't work at all.
It used to work on version 7.3.0 and stopped working on version 8.0.0.
From what I'm seeing, It's only for buttons... If I'm using other kinds of element (For ex. a span) it does work.

Your environment

  • version of gridstack.js - 8.0.0
  • which browser/OS - Chrome

Steps to reproduce

An example can be found here:
https://jsfiddle.net/gili_lumigo/t7vuycoL/3/

When the handler is of type button, The drag doesn't work and when it's of type span, It does

Expected behavior

Should work as prior to version 8 where the drag element works regardless of the element type.

Activity

  1. added a commit that references this issue on May 26, 2024
    63754ba
  2. adumesny commented on May 26, 2024

    @adumesny
    Member

    fixed in the next release. don't forget to donate if you find this lib useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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