Skip to content

Commit a6d02b9

Browse files
kemister85Farzad Hayat
andauthored
Update modules/ROOT/pages/7.6.0-release-notes.adoc
Co-authored-by: Farzad Hayat <[email protected]>
1 parent 6cc8dee commit a6d02b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ROOT/pages/7.6.0-release-notes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ tinymce.init({
296296
input.type = 'file'; // Set the input type to "file" for uploading files
297297
input.accept = 'image/*'; // Restrict the input to accept only image files
298298
input.onchange = (e) => { // Add an event listener to handle the file selection event
299-
const file = (e.target as HTMLInputElement).files?.[0]; // Get the selected file from the input element
299+
const file = (e.target).files?.[0]; // Get the selected file from the input element
300300
if (file) {
301301
console.log(file);
302302
}

0 commit comments

Comments
 (0)