From b15cdfee2207712ab31d32d63dd406b6f17e2f80 Mon Sep 17 00:00:00 2001 From: Benjamin Intal Date: Fri, 4 Aug 2023 13:10:46 +0800 Subject: [PATCH] fixed (accordion): accordions always start open in the editor --- src/block/accordion/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/accordion/edit.js b/src/block/accordion/edit.js index 9ef6074aa..95242767e 100644 --- a/src/block/accordion/edit.js +++ b/src/block/accordion/edit.js @@ -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 )