Skip to content

Commit 477cfbe

Browse files
committed
fix: only get the new style for onChange, since changeStyle now handles merging
1 parent c817ada commit 477cfbe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plugins/global-settings/typography/typography-picker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ import { Dashicon } from '@wordpress/components'
2020
const TypographyPicker = props => {
2121
const { value, help } = props
2222

23-
// On style change, gather all the styles then trigger the onChange.
23+
// On style change, only get the new style then trigger the onChange.
2424
const onChange = ( style, value ) => {
2525
const newStyles = {
26-
...props.value,
2726
[ style ]: value,
2827
}
2928
props.onChange( newStyles )

0 commit comments

Comments
 (0)