fix41: Call event.preventDefault before simulating a click event, to avoid getting two clicks.