Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Missing inputRef property in @types/react-mdl #465

Open
dsheiko opened this issue Feb 8, 2017 · 0 comments
Open

Missing inputRef property in @types/react-mdl #465

dsheiko opened this issue Feb 8, 2017 · 0 comments

Comments

@dsheiko
Copy link

dsheiko commented Feb 8, 2017

When adding a Ref to a React component, the callback receives an object that has property inputRef:
<Textfield ref={(el: Textfield) => { this.input = el.inputRef ); }} />

So one can use it e.g. to get the value of the internal input.
However TypeScript complains like "error TS2339: Property 'inputRef' does not exist on type 'Textfield'."

Apparently the type definitions package @types/react-mdl simply misses inputRef. Actually there is no mentioning of "inputRef" in @types/react-mdl

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

No branches or pull requests

1 participant