diff --git a/src/components/views/dialogs/ExportDialog.tsx b/src/components/views/dialogs/ExportDialog.tsx index 21239edb3c..16d144c87b 100644 --- a/src/components/views/dialogs/ExportDialog.tsx +++ b/src/components/views/dialogs/ExportDialog.tsx @@ -116,7 +116,7 @@ const ExportDialog: React.FC = ({ room, onFinished }) => { return { valid: false, feedback: _t("Size must be a number") }; } - if (min >= parsedSize || parsedSize >= max) { + if (min > parsedSize || parsedSize > max) { return { valid: false, feedback: _t( @@ -149,7 +149,7 @@ const ExportDialog: React.FC = ({ room, onFinished }) => { }; } - if (min >= parsedSize || parsedSize >= max) { + if (min > parsedSize || parsedSize > max) { return { valid: false, feedback: _t( @@ -199,7 +199,7 @@ const ExportDialog: React.FC = ({ room, onFinished }) => { = ({ room, onFinished }) => { onValidate={onValidateSize} element="input" ref={sizeLimitRef} - value={sizeLimit} + value={sizeLimit.toString()} postfixComponent={sizePostFix} onChange={(e) => setSizeLimit(parseInt(e.target.value))} /> diff --git a/src/components/views/elements/Field.tsx b/src/components/views/elements/Field.tsx index ca02df71a9..1373c2df0e 100644 --- a/src/components/views/elements/Field.tsx +++ b/src/components/views/elements/Field.tsx @@ -77,7 +77,7 @@ export interface IInputProps extends IProps, InputHTMLAttributes { diff --git a/src/components/views/messages/MFileBody.js b/src/components/views/messages/MFileBody.js index af1c011f30..d1a2903d76 100644 --- a/src/components/views/messages/MFileBody.js +++ b/src/components/views/messages/MFileBody.js @@ -187,7 +187,7 @@ export default class MFileBody extends React.Component { if (this.props.forExport) { return - + { placeholder } ;