Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom handles with icons cannot be dragged #2703

Open
@CharlieWinkwaves

Description

@CharlieWinkwaves

Subject of the issue

When using a custom handle and the handle contains an icon the item can only be dragged when the user grabs the button. If the icon is grabbed the item cannot be dragged

Your environment

gridstack 10.2.0
Mac,
Chrome v125.0.6422.144
Also reproduced on a linux system with chromium as browser

Steps to reproduce

https://jsfiddle.net/m3Lqx4ka/4/

Expected behavior

I expect the icon to also be used to grab as it is part of the button.
It does work when using text inside the button. So why not icons

I added a screenshot of our handle with the icon inside.
Screenshot 2024-06-18 at 11 28 28

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions