qpixel
qpixel copied to clipboard
Notifications cannot be opened on questions on Codidact Meta and on the Dev Server
- On dev, I can't open the notifications on question pages where I have either a question or an answer
- On Meta, I can't open the notifications on any questions' pages
- I can open the notifications on every other community
On the affected pages, this error shows up on loading it (not when clicking the notifications button)

The error doesn't show up on unaffected pages.
I reproduced this on the dev server: user: https://dev.codidact.org/users/534 post producing the error: https://dev.codidact.org/questions/68 browser: Firefox (incognito)
Console on page load:

Uncaught TypeError: this.element is null design 0.12.0/js/co-design.js:253 design 0.12.0/js/co-design.js:278 design 0.12.0/js/co-design.js:285 design 0.12.0/js/co-design.js:299 design 0.12.0/js/co-design.js:338 design 0.12.0/js/co-design.js:344 design 0.12.0/js/co-design.js:346
On that page, the notification indicator appears but clicking on it doesn't produce the modal. On other pages on the site, I see the notifications just fine.
Fixed
Reported as still happening here: https://meta.codidact.com/questions/279654
An update there says it is specific to posts where you have an answer. There's an empty this.element where there shouldn't be (?).
Is it still available? I haven't faced it single time after joining Codidact. :thinking:
I've tested on dev, and unless I'm missing something, creating an answer on a post, visiting said post and then trying to open up notifications all work perfectly fine. I think we may want to look at closing out this issue and applying a norepro or complete/fixed tag to the meta post
I agree this looks fixed now. Earlier reports included Firefox users, and I can confirm that I do not see this problem in Firefox. I can visit a question that I asked on Meta, or a question on Meta to which I have posted an answer, and in both cases I can open the notifications panel (ignoring the separate problem that clicking on the icon within the notification button doesn't work - that's fixed and awaiting release).
If it is decided to close this issue, do we need a status-completed on some or all of these Meta questions:
Thanks for testing and reporting back. Closing and updating those meta posts.