Skip to content

Commit

Permalink
Merge pull request #1805 from digitallyinduced/amitaibu-patch-3
Browse files Browse the repository at this point in the history
Improve file upload example
  • Loading branch information
mpscholten authored Aug 29, 2023
2 parents 5755990 + 1daf70e commit 8b83fcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Guide/file-storage.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ $(document).on('ready turbolinks:load', () => {

$(this).closest('.file-upload-wrapper')
.find('.remove-file-wrapper')
.toggleClass('hidden', !$this.val());
.toggleClass('hidden', !$this.val())
// Uncheck the "Remove file" checkbox, in case it was previously checked.
.find(':checkbox')
.prop('checked', false);
});

// Hide the file upload wrapper if the remove file checkbox is checked.
Expand Down

0 comments on commit 8b83fcc

Please sign in to comment.