This is the dialog. There is close/save buttons and input field inside the dialog. If you click on input field (to set focus) and click to close or save button then only input field looses its focus, but onClick events aren’t fire. Is it a bug?
<Dialog
autofocus
noCloseOnOutsideClick
width="70%"
header-title={isEditMode ? `Edit user` : `Add user`}
opened={opened}
onClosed={close}
headerRenderer={() => (
<Button theme="tertiary" onClick={close}>
<Icon icon="lumo:cross" />
</Button>
)}
footerRenderer={() => (
<>
<Button theme='primary small' className='ms-auto' disabled={invalid} onClick={() => submit(value) }>
Save
</Button>
<Button theme='secondary small' onClick={close}>
Cancel
</Button>
</>
)}
>
<VerticalLayout className="w-full">
<FormLayout className="w-full" responsiveSteps={[{ columns: 1 }]}>
<TextField
required
minlength={3}
maxlength={27}
label={'Login'}
{...field(model.login)}
/>
</FormLayout>
</VerticalLayout>
</Dialog >