Get Field Component via refs
See original GitHub issueAre you submitting a bug report or a feature request?
feature request
What is the current behavior?
There is no a way to get Field components via refs.
What is the expected behavior?
Access to the rendered component in a Field <Field {....} component={MyCustomField} />
.
What’s your environment?
- final-form": “^4.2.0”
- react-final-form": "^3.1.0
Other information
I am using this library in a React Native App, so the behavior that I would like to implement is this: Focus a field when clicking on “Next” key in the virtual keyboard on iOS.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:21
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Refs and the DOM - React
Refs provide a way to access DOM nodes or React elements created in the render method. In the typical React dataflow, props are...
Read more >Get the value of an Input field using a Ref in React | bobbyhadz
To get the value of an input field using a ref in React, set the `ref` prop on the input element. Access the...
Read more >How to get values from input types using this.refs in reactjs?
1. using ref={ inputRef => this.input = inputRef } · 2. this.name.current.focusTextInput()
Read more >Understanding refs in Vue - LogRocket Blog
Refs are Vue.js instance properties used to register a reference to HTML elements or child elements in the template of your application.
Read more >Template Refs - Vue.js
It allows us to obtain a direct reference to a specific DOM element or child component instance after it's mounted. This may be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Would be nice to have the official Forwarding Refs API implemented in each component to pass down the reference.
Published fix in
v6.5.0
.