mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(editor): database block columns popover closes unexpectedly (#11352)
fix: BS-2906
This commit is contained in:
@@ -352,7 +352,10 @@ const FileCellComponent: ForwardRefRenderFunction<
|
||||
const renderPopoverContent = () => {
|
||||
if (fileList.length === 0) {
|
||||
return (
|
||||
<div className={styles.uploadPopoverContainer}>
|
||||
<div
|
||||
data-peek-view-wrapper="true"
|
||||
className={styles.uploadPopoverContainer}
|
||||
>
|
||||
<Button
|
||||
onClick={() => {
|
||||
openFileOrFiles({ multiple: true })
|
||||
@@ -383,7 +386,10 @@ const FileCellComponent: ForwardRefRenderFunction<
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className={styles.filePopoverContainer}>
|
||||
<div
|
||||
data-peek-view-wrapper="true"
|
||||
className={styles.filePopoverContainer}
|
||||
>
|
||||
<div className={styles.fileListContainer}>
|
||||
{fileList.map(file => (
|
||||
<FileListItem
|
||||
|
||||
@@ -302,6 +302,7 @@ export const MultiMemberSelect: React.FC<MemberManagerOptions> = props => {
|
||||
|
||||
return (
|
||||
<div
|
||||
data-peek-view-wrapper="true"
|
||||
className={styles.multiMemberSelectContainer}
|
||||
onClick={() => inputRef.current?.focus()}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user