fix: expose dropzone ref to publish widget
parent
d36e21c5f1
commit
2281dc6bd0
|
@ -32,6 +32,7 @@ const { draft } = $(draftState)
|
||||||
const {
|
const {
|
||||||
isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone,
|
isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone,
|
||||||
uploadAttachments, pickAttachments, setDescription, removeAttachment,
|
uploadAttachments, pickAttachments, setDescription, removeAttachment,
|
||||||
|
dropZoneRef,
|
||||||
} = $(useUploadMediaAttachment($$(draft)))
|
} = $(useUploadMediaAttachment($$(draft)))
|
||||||
|
|
||||||
let { shouldExpanded, isExpanded, isSending, isPublishDisabled, publishDraft } = $(usePublish(
|
let { shouldExpanded, isExpanded, isSending, isPublishDisabled, publishDraft } = $(usePublish(
|
||||||
|
|
|
@ -143,6 +143,7 @@ export const useUploadMediaAttachment = (draftRef: Ref<Draft>) => {
|
||||||
isUploading,
|
isUploading,
|
||||||
isExceedingAttachmentLimit,
|
isExceedingAttachmentLimit,
|
||||||
failedAttachments,
|
failedAttachments,
|
||||||
|
dropZoneRef,
|
||||||
isOverDropZone,
|
isOverDropZone,
|
||||||
|
|
||||||
uploadAttachments,
|
uploadAttachments,
|
||||||
|
|
Loading…
Reference in New Issue