cuprite
cuprite copied to clipboard
Focus element when setting
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.
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!