Comments (10)
fixed and removed fix.js
from accounts-material-ui.
Added fix again. It seems it is not completely fixed in std:accounts-ui
Need to investigate more.
from accounts-material-ui.
@timbrandin studiointeract/accounts-ui#60 has been fixed but I am still getting this issue.
I still need https://github.com/Zetoff/accounts-material-ui/develop/fix.js otherwise I get this error:
LoginForm.jsx:204 Uncaught TypeError: Cannot read property 'trim' of undefined
at LoginForm.handleChange (LoginForm.jsx:204)
at Field.triggerUpdate (Field.jsx:16)
at Field.componentDidMount (Field.jsx:21)
at modules.js?hash=e87bb51…:187268
at measureLifeCyclePerf (modules.js?hash=e87bb51…:187078)
at modules.js?hash=e87bb51…:187267
at CallbackQueue.notifyAll (modules.js?hash=e87bb51…:180089)
at ReactReconcileTransaction.close (modules.js?hash=e87bb51…:190339)
at ReactReconcileTransaction.closeAll (modules.js?hash=e87bb51…:181248)
at ReactReconcileTransaction.perform (modules.js?hash=e87bb51…:181195)
Any idea?
from accounts-material-ui.
The fix causes another error for me: studiointeract/accounts-ui#92. Apparently, the input object hasn't even been created yet in some cases, causing the reference to value to throw an exception.
from accounts-material-ui.
Maybe we can add an extra check to see if 'input' exists?
triggerUpdate() {
const {onChange} = this.props;
let value;
if(this.input) value = this.input.value;
if (value === undefined) {
value = '';
} else {
// do nothing
}
if (this.input) {
onChange({target: {
value
}})
}
}
This could be done even prettier of course, but I was trying to change as little as possible.
from accounts-material-ui.
@dschreij I agree that it can be done even prettier. It's good for now. In the mid-term - I need to find some time to focus and nail this - I would love to completely remove this fix
.
I've tested the your proposed fix and and works great. I'll pushed now.
Next time feel free to just do a PR to develop ;)
from accounts-material-ui.
@dschreij please let me know if the current version works for you.
from accounts-material-ui.
@PolGuixe sorry, I might indeed as well have sent you a PR. I am using your atmosphere package now. Can I just update it there or do I need to use this package from Github to test it (I need to first find out then how to add packages from Github in meteor). Thanks for responding this quickly!
from accounts-material-ui.
@dschreij the package is now on atmosphere ;) just do meteor update zetoff:accounts-material-ui
and it should update to v0.0.11
.
from accounts-material-ui.
Yes! It seems fixed now. Thanks a lot!
from accounts-material-ui.
Related Issues (19)
- Not able to update HOT 3
- Objects not valid as React Child HOT 12
- Button's href prop doesn't work
- It doesn't work with std:[email protected] HOT 4
- Make it compatible with formMessages
- Make it compatible with TextField inline messages
- Best way to translate the form HOT 1
- Upgrade to [email protected] HOT 2
- DraftJS Kills <Accounts.ui.LoginForm /> - I don’t know why! HOT 1
- Should it not be this.TextField = ref?
- Material.ui 0.17.1 compatibility HOT 1
- Material-Ui Version 17 or 18 Breaks This Package
- Package imports additional React and babel-runtime to client
- No logout button after upgrading from std:[email protected] to 1.2.21 HOT 1
- Material 1.0.x support HOT 5
- Exception in delivering result of invoking 'createUser' HOT 2
- [email protected] needed? HOT 19
- Exception in delivering result of invoking 'login' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accounts-material-ui.