30 sec youtube video about the issue
Or (Take a read)
I am trying to achieve a facebook notification system. The way I am doing it is to have a dropdown jquery inside onRendered.
And the dropdown has a helper function feeding data to the list. The counter bubble is coming from another helper function.
More over, there is a event handler set that makes the bubble disappear upon clicking by making the notification status seen.
All is good, but as soon as I click he photo Request button to initiate the click handler, it does makes the bubble go away by setting the statuses as seen but the dropdown stops working. Refreshing the page solves the issue.
Here is the issue reproduced in a github repo:
https://github.com/kaiyes/autorun_issue
Any help is appreciated. Thanks