Fix: Fixed the issue of not being able to select the time zone in the user center. (#11298)

… user center.

### What problem does this PR solve?

Fix: Fixed the issue of not being able to select the time zone in the
user center.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-17 11:16:55 +08:00
committed by GitHub
parent e7e89d3ecb
commit 9cef3a2625
2 changed files with 12 additions and 22 deletions

View File

@ -86,6 +86,9 @@ const Modal: ModalType = ({
onOk?.();
}, [onOk, onOpenChange]);
const handleChange = (open: boolean) => {
if (!open && !maskClosable) {
return;
}
onOpenChange?.(open);
console.log('open', open, onOpenChange);
if (open && !disabled) {
@ -185,6 +188,7 @@ const Modal: ModalType = ({
<button
type="button"
className="flex h-7 w-7 items-center justify-center rounded-full hover:bg-muted focus-visible:outline-none"
onClick={handleCancel}
>
{closeIcon}
</button>