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

bug(Form): incomplete typings for Form.TextArea #1304

Closed
ak99372 opened this issue Feb 9, 2017 · 2 comments
Closed

bug(Form): incomplete typings for Form.TextArea #1304

ak99372 opened this issue Feb 9, 2017 · 2 comments
Assignees
Labels

Comments

@ak99372
Copy link

ak99372 commented Feb 9, 2017

version 0.64.7
using TypeScript

This works ok
import { Form, TextArea } from 'semantic-ui-react'
<Form.Field> <label>Comments</label> <TextArea value='Text In Here' /> </Form.Field>

This doesn't compile
<Form.TextArea label='Comments' value='Text In Here' />

Error:

Property 'value' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<FormTextAreaProps, ComponentState>> & Re...'.

Checking [FormTextAreaProps] in index.d.ts it does not include [value]

Also not sure if this is the proper format but this doesn't work either

<Form.Field control={TextArea} value='Text In Here' />

@layershifter
Copy link
Member

@ak99372 Thanks for report. Indeed, typings for Form.TextArea looks incomplete.

@layershifter layershifter self-assigned this Feb 9, 2017
@layershifter layershifter changed the title Form.TextArea value does not exist on FormTextAreaProps (Typings) bug(Form): incomplete typings for Form.TextArea Feb 9, 2017
@ak99372
Copy link
Author

ak99372 commented Feb 11, 2017

Did some more testing today and Form.Input seems to be missing [value] field as well on the interface InputProps, though the value can still be used (I'm assuming thanks to [key: string]: any)

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

No branches or pull requests

2 participants