When uploading a file in Safari the :hover
state freezes until the mouse is moved again, see this example:
input:hover{
background-color: red;
}
How to reproduce: open this is Safari, click on the input, choose a file and don't move the mouse. The hove state does not update!<br><br>
<input type="file">
Is there any way I can force a repaint/update of the cursor position? I have tried the following solutions, which do not work in this case:
- How can I force WebKit to redraw/repaint to propagate style changes?
- Force Chrome cursor update when mouse-idling vanilla javascript
Does anyone have a different Javascript or CSS solution, that tells the browser to update the cursor position after the change event is fired? Thanks in advance.