Skip to content

Commit

Permalink
do not remove preview when W icon is clicked (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan authored Jun 12, 2024
1 parent 54907e9 commit ee478a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ const Edit = ( {
const toolbarButtonRef = useRef();

const formatButtonClick = () => {
if ( isActive ) {
removeAttributes();
} else {
if ( ! isActive ) {
startAddingPreview();
}
};
Expand Down

0 comments on commit ee478a0

Please sign in to comment.