riktar / jkanban

Vanilla Javascript plugin for manage kanban boards
https://www.riccardotartaglia.it/jkanban/
Apache License 2.0
1.06k stars 296 forks source link

Disabled element completly not interactible #197

Open JoseCoelho25 opened 7 months ago

JoseCoelho25 commented 7 months ago

So i had an issue when draggin an item from a board to another, i configured some boards to open a modal so the user can input information. The issue was with the boards that become disabled if its part of the dragTo exceptions, althought the item never moves to the board, the modal would still pop up and open.

So i added this to the css class to make the board completly non interactible: .kanban-board.disabled-board { / disable html element that cannot be dragged to / pointer-events: none; opacity: 0.3; }

Just wanted to share in case someone has a similar problem

Scantech-Val commented 7 months ago

Wow, I just had a similar problem and saw your ticket, thanks for sharing this easy fix!