Closed MaximBalaganskiy closed 3 years ago
Thx. Can you share a demo maybe in gist.dumber.app? I want to understand the nature of this bug.
Observe the dev tools console https://gist.dumber.app/?gist=e94702c2adda89af612d35f28374b841
Thx. I will test more. Probably this.groupMap.remove(this);
has a memory leak since items is null after queueMicroTask.
As far as I can tell, this is due to async task working. Nothing should happen in queueTask
after unbind
worked
v1.4.1 is released to fix the issue.
That async logic is wrongly triggered after the repeat is unbound, that's where the items became null. The logic is designed to refresh dnd registration during the life time of the repeater, it's irrelevant after repeat is unbound.
This crashes if an element with the repeater is hidden and at the same time the items is changed.
unbind
sets items tonull
before the task queue callsrepeater.add
.