Skip to content

Commit

Permalink
Keep link format active on edit.
Browse files Browse the repository at this point in the history
Clearing the `activeFormats` list on the link value caused the link edit
popover to close.

Reported by Dave Smith <[email protected]>.
Fixes WordPress#25946.
  • Loading branch information
willRicard committed Oct 20, 2020
1 parent ebff8b5 commit 3ca673d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/format-library/src/link/inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ function InlineLinkUI( {
} else {
const newValue = applyFormat( value, format );
newValue.start = newValue.end;
newValue.activeFormats = [];
onChange( newValue );
}

Expand Down

0 comments on commit 3ca673d

Please sign in to comment.