workaround to prevent blur event handler before click