mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-04 17:31:41 -05:00
Merge branch 'veeramarni-master'
This commit is contained in:
commit
57e86f7e98
2 changed files with 5 additions and 9 deletions
|
@ -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() {
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue