gcanti / tcomb-form

Forms library for react
https://gcanti.github.io/tcomb-form
MIT License
1.16k stars 136 forks source link

Can't change templates #337

Closed jadus closed 8 years ago

jadus commented 8 years ago

I'm trying to get the semantic template to work and my goal is to write a material-ui template. But when I install the tcomb-form-templates-semantic npm and write this

import React from 'react';
import t from 'tcomb-form/lib';
import i18n from 'tcomb-form/lib/i18n/en';
import semantic from 'tcomb-form-templates-semantic';

t.form.Form.i18n = i18n;
t.form.Form.templates = semantic;

I still have the bootstrap markup

gcanti commented 8 years ago

Weird, just made a quick test with a fresh install and everything works fine

jadus commented 8 years ago

What is really weird is that it seems to work when I import tcomb-form instead of tcomb-form/lib. Any idea why ?

gcanti commented 8 years ago

@jadus Still an issue? Closing this for the moment