I just reverted a change with categories that may have been causing it, oddly enough code looks good, but this could be a jQuery bug or something.
Very hard to debug cause I can not get a local repro:
https://github.com/discourse/discourse/commit/d52b0a2458ca1cb19aa1442c0703ff39ee05ff1d
cc @zogstrip