Prevent events on replaced buttons from bubbling