Skip to content

Commit

Permalink
Merge pull request #8149 from infor-design/8024-file-upload-read-only
Browse files Browse the repository at this point in the history
8024 - Fix file clearing for Read Only Field.
  • Loading branch information
ericangeles committed Nov 8, 2023
2 parents 61529e0 + b409000 commit 9b4cca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

## v4.90.0 Fixes

- `[Fileupload]` Added condition to not allow for input clearing for readonly and disabled. ([#8024](https://github.com/infor-design/enterprise/issues/8024))
- `[Modal]` Adjusted modal title spacing to avoid icon from cropping. ([#8031](https://github.com/infor-design/enterprise/issues/8031))

## v4.89.0
Expand Down
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 9b4cca9

Please sign in to comment.