-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
text field getValue from dynamic function error #2524
Comments
@altaihero can you please provide the code that calls this function? it seems like the name is not provided a valid ref string. |
thank for reply this is my code //form fields import TextField from 'material-ui/lib/text-field'; import FlatButton from 'material-ui/lib/flat-button'; export default class Form extends Component {
} }; Form.propTypes = { |
I don't see any component having which of these components cannot be referenced? |
test is just example i was just try get ref value from function |
Thank you for your create UI.
I am trying getValue from dynamic function
const getRefValue = (name) => {
return this.refs[name].getValue();
};
when i call this function i got error ("Uncaught TypeError: _this.refs[name].getValue is not a function")
but if i try this.refs['refName'].getValue() like this fine how to make dynamic function ?
The text was updated successfully, but these errors were encountered: