import Slider from 'material-ui/Slider'
import createComponent from './createComponent'
import mapError from './mapError'

export default createComponent(
  Slider,
  ({ input: { onDragStart, ...inputProps }, ...props }) =>  // eslint-disable-line no-unused-vars
    ({
      ...mapError({ ...props, input: inputProps }, 'error'),
      onChange: (event, value) => inputProps.onChange(value)
    })
)

@@ -201,16 +201,44 @@
 Props %7D,
+ onChange:onChangeFromField,
  ...prop
@@ -375,16 +375,23 @@
  (event,
+ index,
  value) 
@@ -397,34 +397,118 @@
  =%3E 
-inputProps.onChange(value)
+%7B%0A        onChange(value)%0A        if(onChangeFromField) %7B%0A          onChangeFromField(value)%0A        %7D%0A      %7D
 %0A   

Allow onChange from field in Slider.js (#1)