Skip to content

Commit

Permalink
Drop the focus/setFocus props from block edit functions (WordPress#4872)
Browse files Browse the repository at this point in the history
  • Loading branch information
niranjan-uma-shankar committed Feb 15, 2018
1 parent 2ce2fef commit 3797ce8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blocks/library/shortcode/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { withAPIData, Spinner, SandBox } from '@wordpress/components';
import { __ } from '@wordpress/i18n';

function ShortcodePreview( { response, setFocus } ) {
function ShortcodePreview( { response } ) {
if ( response.isLoading || ! response.data ) {
return (
<div key="loading" className="wp-block-embed is-loading">
Expand All @@ -21,7 +21,6 @@ function ShortcodePreview( { response, setFocus } ) {
html={ html }
title="Preview"
type={ response.data.type }
onFocus={ setFocus }
/>
</figure>
);
Expand Down

0 comments on commit 3797ce8

Please sign in to comment.