why do i have to double click a button to make it work in javascript code example
Example: double click on element using javascript
document.getElementById("something").dblclick();
document.getElementById("something").dblclick();