Certain features are disabled when clicked but not used

Continuing the discussion from Save button is deactivated on create groups page:

To reproduce:

  1. Click the flag icon beneath this post
  2. Decide you’re not sure about flagging, hit escape
  3. Decide you actually do want to flag the post, click the flag icon again.
  4. The flag icon is highlighted, but nothing else happens.
  5. console gives Uncaught TypeError: Cannot read property 'prop' of undefined

This affects all flag buttons on the page.

I’ve also observed similar behaviour on:

  • The save button on the groups page
  • The invite button on a topic page
  • The image upload button in the post editing view ← most frequent and annoying instance for sure.

Just fixed the issue when pressing ESC while a modal is open.



Amazing response time. Thanks!

The invite button on a topic page is still messed up though. Not sure why it’s acting differently :frowning: (got any idea @eviltrout ?)

That was surprisingly difficult to fix, and exposed a different leak/bug that I had to fix as well: