Skip to content

Commit

Permalink
Added condition to not allow input clearing for readonly and disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolan Justin Cosico committed Nov 7, 2023
1 parent 2604637 commit a53b17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/fileupload/fileupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ FileUpload.prototype = {
if (e.which === 13 || e.which === 32) {
elem.parent().find('[type="file"]').trigger('click');
handle = true;
} else if (e.which === 8) {
} else if (e.which === 8 && !(elem.prop('readonly') || elem.prop('disabled'))) {
if (env.browser.isIE11()) e.preventDefault();
this.clearUploadFile();
handle = true;
Expand Down

0 comments on commit a53b17e

Please sign in to comment.