Upload button error, dialog doesn't appear

We have been getting a lot of reports from our users about the Upload button not working in the Files app. Unsure if this is related but there’s a consistent JavaScript kt is not a function error displayed in the browser console. In our testing, Chrome based browsers seem to work most reliably but others like Firefox and Safari are more intermittent and from reports.

This is on our v3.1.10 instance but we also have a v2.0.32 instance which does not seem to show the same JavaScript error and we have had no similar reports with.

15 rails-ujs.esm.js:250 Uncaught TypeError: kt is not a function
    at HTMLDocument.<anonymous> (rails-ujs.esm.js:250:44)

Yea we have this bug from time to time. I didn’t know it was in 3.1.10, but I know I fixed something similar in 4.0.1.

Unfortunately I don’t think there’s a remedy other than upgrading.