Our flexible Kanban board for managing tasks with drag drop


Post by jhughesoneplan »

There seems to be an issue with focusing on a task after add when autosync is on.
Steps:
-Add Item
-Syncs (Updates phantomid with real id)
-Tries to focus to name fails with:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'closest')
at Zv.resolveTaskItem (taskboard.lite.umd.min.js:13)
at gf.editTask (taskboard.lite.umd.min.js:13)
at Zv.addTask (taskboard.lite.umd.min.js:13)
resolveTaskItem @ taskboard.lite.umd.min.js:13
editTask @ taskboard.lite.umd.min.js:13
addTask @ taskboard.lite.umd.min.js:13
async function (async)
addTask @ taskboard.lite.umd.min.js:13
onAddClick @ taskboard.lite.umd.min.js:13
trigger @ taskboard.lite.umd.min.js:10
onInternalClick @ taskboard.lite.umd.min.js:10
h @ taskboard.lite.umd.min.js:10

And the edit doesn't focus. It seems that depending on how long the item takes to sync then it works fine. Its hit or miss. If the sync is fast then it fails if the sync takes time then it works.


Post by saki »

Which demo have you used for testing? How did you modify the demo?


Post by jhughesoneplan »

It would be hard because I think its related to adding item, then its syncs with phantomid and then it comes back with a real id and then it tries to focus the task. You would need a demo that does that.


Post by Maxim Gorkovsky »

Hello.
Can you at least provide steps for us to reproduce on our demos and specific app configs/listeners if you're using any? We can simulate a backend delay.


Post Reply