oolib 2.125.3 → 2.125.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,7 +111,7 @@ function PDFInput(_a) {
|
|
|
111
111
|
react_1.default.createElement(StyledActionsButtonWrapper, null,
|
|
112
112
|
react_1.default.createElement(PDFActions_1.PDFActions, { id: id, isInRTE: isInRTE, inputRef: inputRef, parentOnChange: parentOnChange })))); })),
|
|
113
113
|
react_1.default.createElement("input", { type: "file" // When user clicks on upload new video from action menu inputRef.current.click() this does not work for upload button. this approch deals with that issue.
|
|
114
|
-
, accept: "application/pdf", ref: inputRef, style: { display: "none" }, id: "pdfField", onChange: function (v) { return handleUpload(v.target.files); } })));
|
|
114
|
+
, accept: "application/pdf", ref: inputRef, style: { display: "none" }, id: "pdfField", onChange: function (v) { return handleUpload({ files: v.target.files }); } })));
|
|
115
115
|
}
|
|
116
116
|
exports.default = PDFInput;
|
|
117
117
|
var templateObject_1;
|