Timeline for Issue with Drag-and-Drop Functionality: Boxes Not Dropping in Correct Columns
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
2 days ago | answer | added | Cristóbal Peñaloza | timeline score: 0 | |
2 days ago | comment | added | andrilla |
Oh, and <table> related elements are very outdated and can be very challenging to work with. You might want to look into using <div> elements with table related role attributes. Do research first to know whether changing this will benefit you, but usually when I've worked with <table> elements, I end up needing to switch to <div> elements to accomplish my goals, as it related to CSS and JavaScript .
|
|
2 days ago | comment | added | andrilla |
It looks like you didn't include any code to actually handle the drop—unless that's what your changeData code is supposed to do. If that's it, you likely just need to debug that. Usually, I'd expect to see something like e.dataTransfer.setData("text", e.currentTarget.id) in the handleDrop function. This probably won't make a difference with you current code, but in general, it's best to use e.currentTarget , instead of e.target . The currentTarget always refers to the element that has the event listener. target refers to the child of the currentTarget that the cursor is on.
|
|
S Apr 16 at 6:01 | history | bounty started | user022yufjb | ||
S Apr 16 at 6:01 | history | notice added | user022yufjb | Canonical answer required | |
Apr 16 at 6:01 | history | edited | user022yufjb | CC BY-SA 4.0 |
added 2027 characters in body; edited title
|
Apr 3 at 1:20 | history | asked | user022yufjb | CC BY-SA 4.0 |