Using TransformControls with THREEx.domEvents getting error

            const control = new THREE.TransformControls( camera, renderer.domElement );
                control.addEventListener( 'change', renderer.render(scene, camera) );
                control.addEventListener( 'dragging-changed', function ( event ) {
                    controls.enabled = ! event.value;
                } );

                myMeshes.forEach(x=>{
                    domEvents.addEventListener(x, 'click', function (event) {
                        control.attach( x);
                    }, false) 
                })

I have added the TransformControls to my Scene.

But when I now click on one of my Meshes I get this error:

> three2022.js:249 Uncaught TypeError: Cannot read properties of undefined (reading 'call')
>     at TransformControls.dispatchEvent (three2022.js:249:15)
>     at TransformControls.set (TransformControls.js:78:14)
>     at TransformControls.attach (TransformControls.js:519:16)
>     at Object.callback (buy:1036:33)
>     at THREEx.DomEvents._notify (threex.domevents.js:362:11)
>     at THREEx.DomEvents._onEvent (threex.domevents.js:340:7)
>     at THREEx.DomEvents._onMouseEvent (threex.domevents.js:391:7)
>     at THREEx.DomEvents._onClick (threex.domevents.js:405:7)
>     at HTMLCanvasElement._$onClick (threex.domevents.js:81:47)

Clicking again:

//on Hover: 
three2022.js:249 Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at TransformControls.dispatchEvent (three2022.js:249:15)
    at TransformControls.set (TransformControls.js:78:14)
    at TransformControls.pointerHover (TransformControls.js:202:15)
    at TransformControls.onPointerHover (TransformControls.js:642:10)
dispatchEvent @ three2022.js:249
set @ TransformControls.js:78
pointerHover @ TransformControls.js:202
onPointerHover @ TransformControls.js:642

//on Click
three2022.js:249 Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at TransformControls.dispatchEvent (three2022.js:249:15)
    at TransformControls.set (TransformControls.js:78:14)
    at TransformControls.attach (TransformControls.js:519:16)
    at Object.callback (buy:1036:33)
    at THREEx.DomEvents._notify (threex.domevents.js:362:11)
    at THREEx.DomEvents._onEvent (threex.domevents.js:340:7)
    at THREEx.DomEvents._onMouseEvent (threex.domevents.js:391:7)
    at THREEx.DomEvents._onClick (threex.domevents.js:405:7)
    at HTMLCanvasElement._$onClick (threex.domevents.js:81:47)

Has it maybe something todo with the THREEx.Domevents plugin or is it a mix of TransformControls and Domevents click?

Everything seems to work as expected, but only the first click doesn’t attach the TransformControls arrows to the object, but after the first click everything works (errors are still loggin on the console)