Skip to content

Commit

Permalink
feat: wrap section with id and classname if defined in data
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jan 16, 2024
1 parent dd726f2 commit 1a08457
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/manage/Blocks/Group/Edit.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState, useCallback } from 'react';
import cx from 'classnames';
import { isEmpty, without } from 'lodash';
import {
emptyBlocksForm,
Expand Down Expand Up @@ -139,7 +140,8 @@ const Edit = (props) => {
return (
<fieldset
role="presentation"
className="section-block"
id={props.data.id}
className={cx('section-block', props.data.className)}
onKeyDown={(e) => {
handleKeyDown(e, props.index, props.block, props.blockNode.current);
}}
Expand Down

0 comments on commit 1a08457

Please sign in to comment.