Issue detail description:
When the clickToOpenDiv is clicked, it shows the hiddens. However, the hiddens can not do like, comment action. The event handler (eg: send like POST) listen to the action icon is disappeared.
Why:
target.firstChild.innerHTML = html + target.firstChild.innerHTML;
This code will recreate the inner DOM, thus lose all of the binding events
Fix:
Prepend the desire DOM to the target.firstChild
Issue detail description: When the
clickToOpenDiv
is clicked, it shows the hiddens. However, the hiddens can not do like, comment action. The event handler (eg: send like POST) listen to the action icon is disappeared.Why:
This code will recreate the inner DOM, thus lose all of the binding events
Fix: Prepend the desire DOM to the
target.firstChild