-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reactions don't work if JavaScript is disabled #19846
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Turn the emoji buttons into normal links, and then react on the server side? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Huh? Unposted messages? I'm not talking about unposted messages. I was talking about the feature called "reactions", the smiley face to the top right corner of each message. As far I know, you can't add reactions to unposted messages (which makes sense), but only to posted messages. I'm very sorry for not being clear enough. :( To clarify what I was actually talking about, here are the steps to reproduce the bug (?) I meant:
Expected: This reaction gets added. So, if your answer to that bug (?) is also "too much work", well, OK, I will not further bother you. |
Ah okay, there might have been a misunderstanding. I thought you referred to the popup when you type |
Updated issue title and description. |
But without Javascript, we have to refresh the page to address that? |
Yes. But unresponsiveness has to be expected when JS is disabled. |
It appears the template needs refactoring then: I suspect, this is the file that controls it using JavaScript:
Since it's POST, the reactions would need to be inside a |
I don't think we have resources to maintain functionality with disabled JavaScript especially as we thinking about moving more stuff to fronted to improve responsibility for large repos etc by doing more stuff async |
There are more and more features requiring JavaScript. I do not think the latest Gitea UI will work correctly with JavaScript disabled. |
In that case, perhaps the reactions should be not shown at all (and only be made available once JavaScript is executed). |
I have JavaScript enabled in Chrome and the results are inconsistent. I found this discussion while looking for an answer, checked that JavaScript was already enabled for GitHub, and then found one of my reactions on the page I was looking at. I am able to add and remove to reactions that are already posted, but adding a new one may or may not work. I'd be happy to do any testing, but diagnosing JavaScript is beyond me. |
I don't think we can support complex UI interactions without JS. Doing stuff with CSS and single-button-forms is possible, but often much more work. Secondly, CSS-only popovers come with their own set of issues related to stacking context that can only be solved with JS-based popover libraries like done in #20428. |
Description
If you have JavaScript disabled, the reaction selector does not work. (The one which allows you to assign a reaction to a comment or issue). You can open the emoji selection menu, but when you click on an emoji, nothing happens.
Steps to reproduce:
EXPECTED behavior: This reaction gets added to the post.
ACTUAL behavior (without JavaScript): The reaction menu pops up, but clicking an emoji does nothing.
Screenshots
N/A
Gitea Version
1.17.0+dev-633-gfdc784dbf
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
GNU/Linux
Browser Version
Mozilla Firefox 100.0
The text was updated successfully, but these errors were encountered: