| @@ -207,9 +207,9 @@ | ||
| 207 | 207 | </span> |
| 208 | 208 | </span> |
| 209 | 209 | </div> |
| 210 | 210 | <div class="frm-slider-value"> |
| 211 | - <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo empty( $component['unit_measurement'] ) ? esc_attr( $field['value'] ) : (int) $field['value']; ?>" /> | |
| 211 | + <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo ! empty( $component['unit_measurement'] ) ? (int) $field['value'] : esc_attr( $field['value'] ); ?>" /> | |
| 212 | 212 | <input type="hidden" name="<?php echo esc_attr( $field['name'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" id="<?php echo esc_attr( $field['id'] ); ?>" /> |
| 213 | 213 | <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> |
| 214 | 214 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 215 | 215 | <option <?php selected( $component['unit_measurement'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |