diff --git a/modules/file/file.js b/modules/file/file.js index fffec6b..4caa735 100644 --- a/modules/file/file.js +++ b/modules/file/file.js @@ -64,6 +64,14 @@ Drupal.file = Drupal.file || { * Client-side file input validation of file extensions. */ validateExtension: function (event) { + // On IE 11 setting value programatically will trigger a change event. + // Prevent any action when value is empty. + if (this.value === '') { + // Cancel all other change event handlers. + event.stopImmediatePropagation(); + return; + } + // Remove any previous errors. $('.file-upload-js-error').remove();