You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using setAttributes( { optionVal } ) I changed to setAttributes( { option: optionVal } )
Same for change the content on typing (setAttributes( { content: contentVal } ):
<RichText
tagName="h4" // The tag here is the element output and editable in the admin
className={ className }
value={ content } // Any existing content, either from the database or an attribute default
onChange={ ( contentVal ) => setAttributes( { content: contentVal } ) } // Store updated content as a block attribute
placeholder={ __( 'Heading…', 'aquila' ) } // Display this text before any content has been added by the user
/>
Thanks for your great work
The text was updated successfully, but these errors were encountered:
Hi Inran,
I am following your excellent tutorial on YT and the code present in:
aquila-master\assets\src\js\gutenberg\blocks\heading-with-icon\edit.js
didn't work for me. When I clicked in radio buttons the option didn't change.
I apply this change in edit.js and it worked for me:
Instead of using
setAttributes( { optionVal } )
I changed tosetAttributes( { option: optionVal } )
Same for change the content on typing (
setAttributes( { content: contentVal }
):Thanks for your great work
The text was updated successfully, but these errors were encountered: