Skip to content

Commit

Permalink
Move __unstableResize out of the hook
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Aug 28, 2022
1 parent 659818e commit 4d370c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function SelectedBlockPopover( {
} ) }
__unstablePopoverSlot={ __unstablePopoverSlot }
__unstableContentRef={ __unstableContentRef }
__unstableResize={ false }
{ ...popoverProps }
>
{ shouldShowContextualToolbar && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { __unstableUseBlockElement as useBlockElement } from '../block-list/use-
// down the toolbar will stay on screen by adopting a sticky position at the
// top of the viewport.
const DEFAULT_PROPS = {
resize: false,
flip: false,
__unstableShift: true,
};
Expand All @@ -26,7 +25,6 @@ const DEFAULT_PROPS = {
// the block. This only happens if the block is smaller than the viewport, as
// otherwise the toolbar will be off-screen.
const RESTRICTED_HEIGHT_PROPS = {
resize: false,
flip: true,
__unstableShift: false,
};
Expand Down

0 comments on commit 4d370c0

Please sign in to comment.