Skip to content

Commit

Permalink
fix: focus changing issue with the peek overview editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan M authored and Palanikannan M committed Jun 4, 2024
1 parent 77b73dc commit 95ad2da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor/core/src/hooks/use-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const useEditor = ({
if (value === null || value === undefined) return;
if (editor && !editor.isDestroyed && !editor.storage.image.uploadInProgress) {
try {
editor.commands.setContent(value);
editor.commands.setContent(value, false, { preserveWhitespace: "full" });
const currentSavedSelection = savedSelectionRef.current;
if (currentSavedSelection) {
const docLength = editor.state.doc.content.size;
Expand Down
2 changes: 1 addition & 1 deletion web/components/issues/peek-overview/issue-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const PeekOverviewIssueDetails: FC<IPeekOverviewIssueDetails> = observer(
issueId={issue.id}
initialValue={issueDescription}
// for now peek overview doesn't have live syncing while tab changes
swrIssueDescription={issueDescription}
swrIssueDescription={null}
disabled={disabled}
issueOperations={issueOperations}
setIsSubmitting={(value) => setIsSubmitting(value)}
Expand Down

0 comments on commit 95ad2da

Please sign in to comment.