Hi @Terry Chan ,
I believe below code is unreachable.
If 'allday' is checked, it will go to else branch. if If 'allday' is unchecked, it will trigger a click then return. the event handler won't get mounted.
Best Regards,
Baker Kong
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.