🐛 Fix theme avatar form variable click unfocus bug
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
|||||||
Image,
|
Image,
|
||||||
Flex,
|
Flex,
|
||||||
Box,
|
Box,
|
||||||
Portal,
|
|
||||||
} from '@chakra-ui/react'
|
} from '@chakra-ui/react'
|
||||||
import { ImageUploadContent } from '@/components/ImageUploadContent'
|
import { ImageUploadContent } from '@/components/ImageUploadContent'
|
||||||
import { DefaultAvatar } from '../DefaultAvatar'
|
import { DefaultAvatar } from '../DefaultAvatar'
|
||||||
@@ -70,7 +69,6 @@ export const AvatarForm = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<Portal>
|
|
||||||
<PopoverContent p="4">
|
<PopoverContent p="4">
|
||||||
<ImageUploadContent
|
<ImageUploadContent
|
||||||
filePath={uploadFilePath}
|
filePath={uploadFilePath}
|
||||||
@@ -78,7 +76,6 @@ export const AvatarForm = ({
|
|||||||
onSubmit={handleImageUrl}
|
onSubmit={handleImageUrl}
|
||||||
/>
|
/>
|
||||||
</PopoverContent>
|
</PopoverContent>
|
||||||
</Portal>
|
|
||||||
</Popover>
|
</Popover>
|
||||||
)}
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Reference in New Issue
Block a user