Skip to content

Commit

Permalink
back to the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PolGuixe committed Nov 15, 2016
1 parent 577a0b5 commit 3669387
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions fix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Keep this until issue with std:account-ui is fixed
// https://github.com/studiointeract/accounts-ui/issues/60

import {Accounts, STATES} from 'meteor/std:accounts-ui';

class Field extends Accounts.ui.Field {
triggerUpdate() {
const {onChange} = this.props
let value = this.input.value;

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

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

Accounts.ui.Field = Field;

export { Accounts, STATES }
export default Accounts
2 changes: 1 addition & 1 deletion main.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {Accounts, STATES} from 'meteor/std:accounts-ui';
import {Accounts, STATES} from './fix.js'; // TODO: back to normal once std:accounts-ui is fixed
import {RaisedButton, FlatButton, FontIcon, TextField, Divider} from 'material-ui';
import {socialButtonsColors, socialButtonIcons} from './social_buttons_config';

Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'zetoff:accounts-material-ui',
version: '0.0.6',
version: '0.0.7',
// Brief, one-line summary of the package.
summary: 'Material-UI - Accounts UI for React in Meteor',
// URL to the Git repository containing the source code for this package.
Expand Down

0 comments on commit 3669387

Please sign in to comment.