Skip to content

Commit ee8d181

Browse files
authored
fix(review): hide annotation toolbar when suggestion modal is open (#469)
Prevent stacking dialogs by hiding the AnnotationToolbar when the SuggestionModal (expanded editor) is open, avoiding the original dialog from overlaying the fullpage dialog.
1 parent 070f75f commit ee8d181

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/review-editor/components/DiffViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ export const DiffViewer: React.FC<DiffViewerProps> = ({
545545
</div>
546546
</div>
547547

548-
{toolbar.toolbarState && (
548+
{toolbar.toolbarState && !toolbar.showCodeModal && (
549549
<AnnotationToolbar
550550
toolbarState={toolbar.toolbarState}
551551
toolbarRef={toolbar.toolbarRef}

0 commit comments

Comments
 (0)