honours the onClick custom property.