Skip to content

Commit

Permalink
Fix: text color dropdown not showing up after clicking for the first …
Browse files Browse the repository at this point in the history
…time (#27596)
  • Loading branch information
rafaelgallani authored Dec 22, 2020
1 parent 69bf4e6 commit 98c9d38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/format-library/src/text-color/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ function TextColorEdit( {
onClose={ disableIsAddingColor }
activeAttributes={ activeAttributes }
value={ value }
onChange={ onChange }
onChange={ ( ...args ) => {
onChange( ...args );
disableIsAddingColor();
} }
contentRef={ contentRef }
/>
) }
Expand Down

0 comments on commit 98c9d38

Please sign in to comment.