Skip to content

Commit 16c1287

Browse files
stokesmanyouknowriadjasmussen
authored andcommitted
Editor: Avoid remounts of DocumentBar (WordPress#62214)
* Incorporate PostTypeSupportCheck in DocumentBar * Remove PostTypeSupportCheck from DocumentBar Co-authored-by: youknowriad <[email protected]> Co-authored-by: jasmussen <[email protected]>
1 parent 7a5c589 commit 16c1287

File tree

1 file changed

+1
-8
lines changed
  • packages/editor/src/components/header

1 file changed

+1
-8
lines changed

packages/editor/src/components/header/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import MoreMenu from '../more-menu';
2525
import PostPreviewButton from '../post-preview-button';
2626
import PostPublishButtonOrToggle from '../post-publish-button/post-publish-button-or-toggle';
2727
import PostSavedState from '../post-saved-state';
28-
import PostTypeSupportCheck from '../post-type-support-check';
2928
import PostViewLink from '../post-view-link';
3029
import PreviewDropdown from '../preview-dropdown';
3130
import { store as editorStore } from '../../store';
@@ -117,13 +116,7 @@ function Header( {
117116
! isBlockToolsCollapsed && hasTopToolbar,
118117
} ) }
119118
>
120-
{ ! title ? (
121-
<PostTypeSupportCheck supportKeys="title">
122-
<DocumentBar />
123-
</PostTypeSupportCheck>
124-
) : (
125-
title
126-
) }
119+
{ ! title ? <DocumentBar /> : title }
127120
</div>
128121
</motion.div>
129122
<motion.div

0 commit comments

Comments
 (0)