We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 639fe8b commit d49cf5cCopy full SHA for d49cf5c
1 file changed
src/components/font-size-control/index.js
@@ -10,7 +10,7 @@ import { __ } from '@wordpress/i18n'
10
import { i18n } from 'stackable'
11
12
const FontSizeControl = props => {
13
- let passedPlaceholder = props.placeholder
+ const passedPlaceholder = props.placeholder
14
15
const pxToEm = ( value = '', baseValue = 21 ) => {
16
if ( value === '' ) {
@@ -28,11 +28,6 @@ const FontSizeControl = props => {
28
return Math.round( parseFloat( value ) * baseValue )
29
}
30
31
- if ( typeof passedPlaceholder === 'string' ) {
32
- // Add a converted EM unit whenever the user changes the unit.
33
- passedPlaceholder = [ passedPlaceholder, pxToEm( passedPlaceholder ) ]
34
- }
35
-
36
return (
37
<AdvancedRangeControl
38
{ ...props }
0 commit comments