Skip to content

Commit

Permalink
delete console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Jun 12, 2024
1 parent 59009c0 commit a521faf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/Composer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ function Composer(

if (textInput.current !== event.target && !(isContenteditableDivFocused && !event.clipboardData?.files.length)) {
const eventTarget = event.target as HTMLInputElement | HTMLTextAreaElement | null;
console.log('%%%%%\n', 'i enter here'); // tu nie wchodzi
// To make sure the composer does not capture paste events from other inputs, we check where the event originated
// If it did originate in another input, we return early to prevent the composer from handling the paste
const isTargetInput = eventTarget?.nodeName === 'INPUT' || eventTarget?.nodeName === 'TEXTAREA' || eventTarget?.contentEditable === 'true';
Expand All @@ -186,8 +185,6 @@ function Composer(

const clipboardDataHtml = event.clipboardData?.getData(TEXT_HTML) ?? '';

console.log('%%%%%\n', 'clipboardDataHtml', clipboardDataHtml);

// If paste contains files, then trigger file management
if (event.clipboardData?.files.length && event.clipboardData.files.length > 0) {
// Prevent the default so we do not post the file name into the text box
Expand Down Expand Up @@ -228,7 +225,6 @@ function Composer(
}
}
}
console.log('%%%%%\n', 'onPaste returns false');
return false;
},
[onPasteFile, checkComposerVisibility],
Expand Down

0 comments on commit a521faf

Please sign in to comment.