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

DatePicker and textarea input #116

Open
n0ne opened this issue Mar 15, 2017 · 1 comment
Open

DatePicker and textarea input #116

n0ne opened this issue Mar 15, 2017 · 1 comment

Comments

@n0ne
Copy link

n0ne commented Mar 15, 2017

I have very strange behavior of these two input fields.
Some pieces of my code:

     <Form
        schema      ={ modelSchema }
        value={ this.state.model }
        onChange={ model =>  { this.setState({ model: model }) } }                
        onSubmit={ this.handleSubmit }
     >

    ......
        <Form.Field
            name='from'
            type='date'
            min={ new Date() }
            max={ new Date(moment().add(21, 'days')) }
         />
        <Form.Field
            name='description'
            type='textarea'
        />
    ......

    </Form>

If at first I'm typing in textarea - everything OK
But if I selected date at first and then start typing... it become too slow, painful

I did small video. Any suggestions?

@jquense
Copy link
Owner

jquense commented Jun 20, 2017

i'm not sure not knowing what your inputs are but perhaps the reason is creating a new date on each render?

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

2 participants