You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: