We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c817ada commit 477cfbeCopy full SHA for 477cfbe
src/plugins/global-settings/typography/typography-picker.js
@@ -20,10 +20,9 @@ import { Dashicon } from '@wordpress/components'
20
const TypographyPicker = props => {
21
const { value, help } = props
22
23
- // On style change, gather all the styles then trigger the onChange.
+ // On style change, only get the new style then trigger the onChange.
24
const onChange = ( style, value ) => {
25
const newStyles = {
26
- ...props.value,
27
[ style ]: value,
28
}
29
props.onChange( newStyles )
0 commit comments