Reorder blurActiveTextEntry and setViewportPanelViewMode calls

This commit is contained in:
2026-04-02 23:05:18 +02:00
parent fcd7886987
commit bb4435814b

View File

@@ -1326,9 +1326,6 @@ export function App({ store, initialStatusMessage }: AppProps) {
return;
}
blurActiveTextEntry();
store.setViewportPanelViewMode(panelId, nextViewMode);
if (
editorState.viewportTransientState.toolPreview.kind === "box-create" &&
editorState.viewportTransientState.toolPreview.sourcePanelId === panelId
@@ -1336,6 +1333,9 @@ export function App({ store, initialStatusMessage }: AppProps) {
store.clearViewportToolPreview(panelId);
}
blurActiveTextEntry();
store.setViewportPanelViewMode(panelId, nextViewMode);
setStatusMessage(`Set the ${getViewportPanelLabel(panelId)} panel to ${getViewportViewModeLabel(nextViewMode)} view.`);
};