mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Avoid JS error in dataview row destroy after row is removed
TypeError: Cannot read properties of null (reading 'classList')
This commit is contained in:
parent
1509f30971
commit
ba4a7364f5
@ -149,6 +149,12 @@ export function et2_dataview_rowAOI(_node)
|
||||
this.checkBox.checked = selected;
|
||||
}
|
||||
|
||||
// Node might not be set yet / anymore
|
||||
if(!this.node || typeof this.node?.classList == "undefined")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.node.classList.toggle('focused', egwBitIsSet(_state, EGW_AO_STATE_FOCUSED));
|
||||
this.node.classList.toggle('selected', selected);
|
||||
this.node.classList.toggle('drag--moving', egwBitIsSet(_state, EGW_AO_STATE_DRAGGING));
|
||||
|
Loading…
Reference in New Issue
Block a user