prometheusresearch-archive / react-forms

Forms library for React.
1.16k stars 112 forks source link

Label customizing doen't works #123

Closed stavenko closed 8 years ago

stavenko commented 8 years ago

Hello, I just used your tutorial to customized controls in forms:

function Label({label, schema}){
  console.log("LLLL");
  return <BaseLabel className='col-xs-6' label={label} schema={schema} />
}

function Field(props){
  console.log("FFFF", props);
  return <BaseField {...props} className='form-control' Label={Label} />
}

I can see 'FFFF' with properties in my console, but I never seen, that LLLL has printed. I have used react-forms@2.0.0-beta11

Gladly give you more detailed explanations.

PS: className='form-control' on input is never displayed too. Seems like customization broken at all.

andreypopp commented 8 years ago

I've updated the docs, see Customizing form fields section.