Skip to content

Commit

Permalink
improving fix in issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
PolGuixe committed Jan 19, 2017
1 parent 797d16f commit 2c895a2
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@
import {Accounts, STATES} from 'meteor/std:accounts-ui';

class Field extends Accounts.ui.Field {
triggerUpdate() {
const {onChange} = this.props
let value = this.input.value;
triggerUpdate() {
const {onChange} = this.props;
let value;
if(this.input) {
value = this.input.value;
}
if (value === undefined) {
value = '';
} else {
// do nothing
}

if (value === undefined) {
value = '';
} else {
// do nothing
}

if (this.input) {
onChange({target: {
value
}})
}
}
if (this.input) {
onChange({target: {
value
}})
}
}
}

Accounts.ui.Field = Field;
Expand Down

0 comments on commit 2c895a2

Please sign in to comment.