Skip to content

Commit

Permalink
fixed (accordion): accordions always start open in the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Intal authored and Benjamin Intal committed Aug 4, 2023
1 parent f9ca606 commit b15cdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block/accordion/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Edit = props => {

useGeneratedCss( props.attributes )

const [ isOpen, setIsOpen ] = useState( true )
const [ isOpen, setIsOpen ] = useState( props.attributes.startOpen )
const { hasInnerBlocks } = useBlockContext()
const [ hasInitClickHandler, setHasInitClickHandler ] = useState( false )

Expand Down

0 comments on commit b15cdfe

Please sign in to comment.