Merge branch 'veeramarni-master'

This commit is contained in:
Tim Brandin 2016-11-10 13:19:19 +01:00
commit 57e86f7e98
2 changed files with 5 additions and 9 deletions

View file

@ -13,16 +13,9 @@ export class Field extends React.Component {
triggerUpdate() {
// Trigger an onChange on inital load, to support browser prefilled values.
const { onChange } = this.props;
let node = ReactDOM.findDOMNode(this);
if (this.input) {
onChange({ target: { value: this.input.value } });
}
// Backward compat.
else if (node) {
let value = node.getElementsByTagName('input')[0].value;
// Match the data format of a typical onChange event.
onChange({ target: { value: value } });
}
}
componentDidMount() {

View file

@ -17,8 +17,11 @@
},
"homepage": "https://github.com/studiointeract/accounts-ui",
"dependencies": {
"react": ">=0.14.7 || ^15.0.0-rc.2",
"react-dom": ">=0.14.7 || ^15.0.0-rc.2",
},
"peerDependencies": {
"react": ">=0.14.7 || ^15.0.0",
"react-dom": ">=0.14.7 || ^15.0.0",
"tracker-component": "^1.3.16"
}
}