Don't trigger event for hidden elements

[ref] #6