Skip to content

Commit

Permalink
Try removing InserterWithShortcuts before focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Dec 2, 2018
1 parent d356473 commit 7a483c4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions packages/editor/src/components/block-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ class BlockList extends Component {
isDraggable={ isDraggable }
/>
) ) }
{ blockClientIds.length === 0 &&
<BlockListAppender rootClientId={ rootClientId } />
}
<BlockListAppender rootClientId={ rootClientId } />
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { withSelect, withDispatch } from '@wordpress/data';
* Internal dependencies
*/
import BlockDropZone from '../block-drop-zone';
import InserterWithShortcuts from '../inserter-with-shortcuts';
import Inserter from '../inserter';

export function DefaultBlockAppender( {
Expand Down Expand Up @@ -59,7 +58,6 @@ export function DefaultBlockAppender( {
onFocus={ onAppend }
value={ showPrompt ? value : '' }
/>
<InserterWithShortcuts rootClientId={ rootClientId } />
<Inserter position="top right" />
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ exports[`DefaultBlockAppender should append a default block when input focused 1
rows={1}
value="Start writing or type / to choose a block"
/>
<WithSelect(WithDispatch(InserterWithShortcuts)) />
<WithSelect(IfCondition(Inserter))
position="top right"
/>
Expand All @@ -44,7 +43,6 @@ exports[`DefaultBlockAppender should match snapshot 1`] = `
rows={1}
value="Start writing or type / to choose a block"
/>
<WithSelect(WithDispatch(InserterWithShortcuts)) />
<WithSelect(IfCondition(Inserter))
position="top right"
/>
Expand All @@ -66,7 +64,6 @@ exports[`DefaultBlockAppender should optionally show without prompt 1`] = `
rows={1}
value=""
/>
<WithSelect(WithDispatch(InserterWithShortcuts)) />
<WithSelect(IfCondition(Inserter))
position="top right"
/>
Expand Down

0 comments on commit 7a483c4

Please sign in to comment.