Skip to content

Commit

Permalink
Allow columns/section block to function properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Feb 6, 2023
1 parent 99fdb4d commit 4209655
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/SearchBlock/BlockContainer/BlockContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ export default function BlockContainer(props) {
metadata={metadata}
selected={selected}
multiSelected={false}
onMoveBlock={() => {}}
onDeleteBlock={() => {}}
onFocusNextBlock={() => {}}
onFocusPreviousBlock={() => {}}
onAddBlock={() => {}}
onMutateBlock={() => {}}
onChangeBlock={onChangeSlotfill}
onDeleteBlock={() => {}}
onInsertBlock={() => {}}
onMoveBlock={() => {}}
onSelectBlock={(id, isSelected) => onSelectSlotfill(id)}
pathname={location.pathname}
index={index}
disableNewBlocks={true}
blocksConfig={blocksConfig}
/>
) : (
Expand Down
4 changes: 2 additions & 2 deletions src/SearchBlock/BlockContainer/SlotEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function SlotEditor(props) {
return {
menuItem: (el, { active, index }) => {
return (
<div className={cx('menu item', { active })}>
<div className={cx('menu item', { active })} key={index}>
<Button
as="a"
icon
Expand Down Expand Up @@ -72,7 +72,7 @@ export default function SlotEditor(props) {
onChangeSlotfill={onChangeSlotfill}
onDeleteSlotfill={onDeleteSlotfill}
onSelectSlotfill={onSelectSlotfill}
properties={properties}
properties={data?.[blockId]}
metadata={metadata}
/>
</Tab.Pane>
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const applyConfig = (config) => {
edit: SearchBlockEdit,
restricted: false,
mostUsed: false,
blockHasOwnFocusManagement: false,
blockHasOwnFocusManagement: true,
sidebarTab: 1,
schema: SearchBlockSchema,
security: {
Expand Down

0 comments on commit 4209655

Please sign in to comment.