@syncfusion/ej2-filemanager 20.4.40 → 20.4.43

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.
@@ -3801,7 +3801,7 @@ function onSubmitValidate(parent, ele) {
3801
3801
  onValidate(parent, ele);
3802
3802
  var len = ele.value.length - 1;
3803
3803
  if (ele.value !== '' && ((ele.value.lastIndexOf('.') === len) || (ele.value.lastIndexOf(' ') === len)) &&
3804
- (parent.showFileExtension || (parent.currentItemText.lastIndexOf('.') === -1))) {
3804
+ (parent.showFileExtension || (ele.value.lastIndexOf('.') === -1 || ele.value.substring(ele.value.indexOf('.') + 1).length === 0))) {
3805
3805
  addInvalid(parent, ele);
3806
3806
  }
3807
3807
  }