Hey, just want to point out that this “breaks” with Discourse Latest ( 2.8.0.beta6 (0d809197aa) ).
TypeError: null is not an object (evaluating ´this.mobileUploadButton.addEventListener´)
Started to happen after a Rebuild (and therefore, update to latest).
This only happens on Mobile.
Doesn’t happen on all browsers, neither on all devices (could be a cache thing? idk). But once it happens there is no way to “fix it” from a user’s perspective.
The behavior is weird because it “changes” how the buttons behave. The “discard” button (trash can) and Preview buttons reload the page. The “Discourse Gifs Theme Component” Button just expands the composer.
I thought it was some compatibility issue with the “Discourse Gifs” Theme Component but if I disable that one the issue persists.
I can provide more details if necessary. I tried removing as much as possible but it seems that he problem only stops happening after disabling this Theme Component.
btw, just want to use the opportunity and point out what a great Theme Component this is and how much I do think that it should be a core feature