mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 11:12:20 +08:00
fix(plugin-fm): fix attachment component selectable check (#4563)
This commit is contained in:
parent
d7866a6b51
commit
3f8ab46dc1
@ -390,7 +390,8 @@ export function Uploader({ rules, ...props }: UploadProps) {
|
|||||||
|
|
||||||
const { mimetype: accept, size } = rules ?? {};
|
const { mimetype: accept, size } = rules ?? {};
|
||||||
const sizeHint = useSizeHint(size);
|
const sizeHint = useSizeHint(size);
|
||||||
const selectable = !disabled && (multiple || !(value || pendingList.length));
|
const selectable =
|
||||||
|
!disabled && (multiple || ((!value || (Array.isArray(value) && !value.length)) && !pendingList.length));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user