File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/components/font-size-control Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { __ } from '@wordpress/i18n'
1010import { i18n } from 'stackable'
1111
1212const FontSizeControl = props => {
13- let passedPlaceholder = props . placeholder
13+ const passedPlaceholder = props . placeholder
1414
1515 const pxToEm = ( value = '' , baseValue = 21 ) => {
1616 if ( value === '' ) {
@@ -28,11 +28,6 @@ const FontSizeControl = props => {
2828 return Math . round ( parseFloat ( value ) * baseValue )
2929 }
3030
31- if ( typeof passedPlaceholder === 'string' ) {
32- // Add a converted EM unit whenever the user changes the unit.
33- passedPlaceholder = [ passedPlaceholder , pxToEm ( passedPlaceholder ) ]
34- }
35-
3631 return (
3732 < AdvancedRangeControl
3833 { ...props }
You can’t perform that action at this time.
0 commit comments