Input file buttons in firefox unresponsive
Have you enabled troubleshooting mode?
- I confirm that the troubleshooting mode is enabled.
Describe the bug
In firefox, trying to add an image to a performer or studio from a local file has recently stopped working. Clicking on the "From file" button has no response, while "From URL" still works. Tested in firefox with/without private window/plugins and librefox. It works in Chromium.
The issue seems to be having an <input> inside a <button> element (https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#technical_summary ; permitted content section, since input is "interactive"). If you use the DOM Inspector to change <button> to <label> it works again (though throws the CSS off currently). Alternatively you could move the <input> to be a sibling of <button> and adjust the jquery to match.
Steps to reproduce
- Using firefox, go to edit a performer's page
- Click "Set Image"
- Click "From file"
- No file selector appears
Expected behaviour
A file selector appears
Screenshots or additional context
No response
Stash version
v0.31.1-168-gb6b09dd5
Device details
Firefox 155 on Windows
Relevant log output
Source: stashapp/stash