import React from 'react'
import styles from './input-styles'

export default ({ className, errors, onChange, onCommit, property, value }) => (
  <input
    className={`${className} ${styles.input} ct-number-input`}
    data-tip={errors}
    disabled={property.disabled}
    id={property.id}
    onBlur={() => onCommit()}
    onChange={e => onChange(e.target.valueAsNumber)}
    title={property.title}
    type='number'
    value={value} />
)

import React from 'react'
import styles from './input-styles'

export default ({ className, errors, onChange, onCommit, property, value }) => (
  <input
    className={`${className} ${styles.input} ct-number-input`}
    data-tip={errors}
    disabled={property.disabled}
    id={property.id}
    onBlur={() => onCommit()}
    onChange={e => onChange(e.target.value)}
    title={property.title}
    type='number'
    value={value} />
)

Fix bug which stopped users from submitting decimal values in number fields
fix: Fix bug which stopped users from submitting decimal values in number fields
