Skip to content

Commit

Permalink
Render button as a div in the editor to prevent keyboard events
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Dec 10, 2024
1 parent fe01a1c commit 7f8a319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu-plugins/blocks/modal/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function Edit( {
<div className="wp-block-buttons">
<div className="wp-block-button">
<RichText
tagName="button"
tagName="div"
className="wp-block-button__link"
value={ attributes.label }
onChange={ ( label ) => setAttributes( { label } ) }
Expand Down

0 comments on commit 7f8a319

Please sign in to comment.