cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

Focus element when setting

Open pythonandchips opened this issue 1 year ago • 1 comments

The JS for filling in a field does not focus the element before filling it in, only triggers the focus event. This causes failures when checking the document.activeElement as the input will not be focused.

This fixes the issue by calling focus on the node before triggering the event.

pythonandchips avatar Nov 14 '24 14:11 pythonandchips

Hi @route, I've tidied up this PR to reduce the dependabot changes from our fork.

Is there any chance you're able to review this? We've been using the fix since late-October '24 (some 14,000+ runs) and it's been reliable for reducing flakey issues.

Thanks!

dmorgan-fa avatar Feb 06 '25 12:02 dmorgan-fa