diff --git a/src/gui/filedetails/ShareDetailsPage.qml b/src/gui/filedetails/ShareDetailsPage.qml index 90044734aa6bd..a8755526f5e3b 100644 --- a/src/gui/filedetails/ShareDetailsPage.qml +++ b/src/gui/filedetails/ShareDetailsPage.qml @@ -778,6 +778,11 @@ Page { contentItem: NCInputTextField { id: expireDateSpinBoxTextField + validInput: { + const value = expireDateSpinBox.valueFromText(text); + return value >= expireDateSpinBox.from && value <= expireDateSpinBox.to; + } + text: expireDateSpinBox.textFromValue(expireDateSpinBox.value, expireDateSpinBox.locale) readOnly: !expireDateSpinBox.editable validator: expireDateSpinBox.validator