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

[field][valueBehaviourMixin] #36

Closed
anisgh opened this issue May 19, 2015 · 2 comments
Closed

[field][valueBehaviourMixin] #36

anisgh opened this issue May 19, 2015 · 2 comments

Comments

@anisgh
Copy link

anisgh commented May 19, 2015

/**
  * Get the value from the field.
  */
  getValue: function getValue() {
    return this.refs.input.getValue();
  },

Get an error Uncaught TypeError: Cannot read property 'getValue' of undefined

@anisgh
Copy link
Author

anisgh commented May 19, 2015

When used with a jquery plugin

@oussony
Copy link

oussony commented May 19, 2015

valueBehaviourMixin =>

 getValue: function getValue() {
    return this.refs.input.getValue();
  },
 getValue: function getValue() {
    return if(this.refs.input){ return this.refs.input.getValue()} else return this.state.value;
  },

@pierr pierr closed this as completed in 93d577e May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants