Project

General

Profile

Js click() event doesn't work

Added by Steve Forman over 5 years ago

Hello!

I am using W 3.3.11 and i have the following issue. I have automatic tests in my website and in earlier versions (Wt 3.3.1) the following construction worked well for me:

var el = document.getElementById('t_ohahqfo');var event = new MouseEvent('click', {bubbles:true,clientY:el.getBoundingClientRect().top+5});el.dispatchEvent(event);

I used, for example, to choose a row in the table. Now the click doesn't work and i need to use mousedown event. It work well. What have changed in the new releases?? (WTF?)

Thanks you in advance!