Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormsyDate 'width' style doesn't apply #209

Open
Sevelf opened this issue Apr 14, 2017 · 2 comments
Open

FormsyDate 'width' style doesn't apply #209

Sevelf opened this issue Apr 14, 2017 · 2 comments

Comments

@Sevelf
Copy link

Sevelf commented Apr 14, 2017

Hi,

I've wanted to change width for my FormsyDate component, but i can't. Meanwhile it works fine for FormsySelect or FormsyText.

const styles = {
  fieldStyle: {
    width: 100,
  },
};
...
<FormsyText
  name="formsyText"
  floatingLabelText="Formsy Text"
  floatingLabelFixed
  style={styles.fieldStyle}
/>
<FormsySelect
  name="formsySelect"
  floatingLabelText="Formsy Select"
  floatingLabelFixed
  style={styles.fieldStyle}
>
  <MenuItem key={1} value={1} primaryText={'First'} />
  <MenuItem key={2} value={2} primaryText={'Second'} />
</FormsySelect>
<FormsyDate
  name="formsyDate"
  floatingLabelText="Formsy Date"
  floatingLabelFixed
  style={styles.fieldStyle}
/>
@josedesousa
Copy link

Hey,

Seems the FormsyAutoComplete is also effected by this. In the following code the style property is ignored:

<FormsyAutoComplete
  name="location_name"
  required
  hintText="Where are you based?"
  floatingLabelText="Location"
  style={{width: '100%'}}
  dataSource={[
    'Here',
    'There',
    'Everywhere'
  ]}
/>

@bill-crombie
Copy link

Use textFieldStyle for FormsyDate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants