Fix #7983 (click event being fired twice)