Fix broken widget tree actions because of unexpected DOM Element object

This commit is contained in:
Hadi Nategh 2021-08-04 11:50:43 +02:00
parent 76d1d570f6
commit 41ccb921be

View File

@ -285,6 +285,13 @@ export function egwPopupActionImplementation()
let tapTimeout = null;
let startx = 0;
let starty = 0;
//TODO (todo-jquery): ATM we need to convert the possible given jquery dom node object into DOM Element, this
// should be no longer neccessary after removing jQuery nodes.
if (_node instanceof jQuery)
{
_node = _node[0];
}
_node.addEventListener('touchstart', function(e){
tapTimeout = setTimeout(function(event){