Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,8 @@ export const CodeEditor = ({
)}
ref={ref}
>
{(isUploadEnabled || emptyState) && !value ? (
{isUploadEnabled || emptyState ? (
/* Upload/EmptyState enabled: wrap in Dropzone container */
<div
{...getRootProps({
onClick: (event) => event.stopPropagation() // Prevents clicking TextArea from opening file dialog
Expand All @@ -619,15 +620,16 @@ export const CodeEditor = ({
</div>
</div>
) : (
<>
/* No upload/emptyState: use consistent container structure */
<div className={css(styles.codeEditorContainer)}>
{editorHeader}
{showEditor && (
<div className={css(styles.codeEditorMain)}>
{hiddenFileInput}
{editor}
</div>
)}
</>
</div>
)}
</div>
);
Expand Down
Loading