Prevent action if user clicked on the active element