riktar / jkanban

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

Fix bug of drag cannot work when adding div content in title #48

Closed upzone closed 5 years ago

upzone commented 5 years ago

The thing is, if add html div content as title property, and then drag, then may get inner div as current context handle rather than desired 'kanban-item'

riktar commented 5 years ago

Hi @upzone I've just fix this, look last commit :smile:

upzone commented 5 years ago

@riktar , actually, if you add div html in title, that may cause another problem, I believe it is clicking and drag the inner div panel rather than outer 'kanban-item' div. That's why I stopped looking for the 'kanban-item' div

"title": "<div class='boardItems'>" + "<div class='boardItems-title'>Intake Manager Assessment</div>" + "<div class='boardItems-text'>Intake Manager</div>" + "<div class='boardItems-text'>No due date</div>" + "<div class='boardItems-text'>Stage 03</div>" + "</div>" ,

riktar commented 5 years ago

Ok, fixed