Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Account route crashes client on example-forum / example-customization #47

Open
movationdesign opened this issue Apr 18, 2018 · 0 comments

Comments

@movationdesign
Copy link

movationdesign commented Apr 18, 2018

Vulcan client crashes whenever I click on the Edit Account button on UsersProfile page. It happens on my custom package as well as a clean Vulcan-starter so it’s not a problem on my end.

So this route http://localhost:3000/users/david/edit
It quickly flashes the UsersAccount page before it blanks out.

NewsletterSubscribe.jsx:25 Uncaught TypeError: this.context.addToAutofilledValues is not a function
vulcan_newsletter.js:133 Uncaught TypeError: this.context.addToAutofilledValues is not a function

It appears to be a problem with in the NewsletterSubscribe.jsx component from the vulcan-newsletter package —specifically this line (line 25):

this.context.addToAutofilledValues({[this.props.name]: !!this.props.value});

I tried removing that line, and then it stops crashing, but then I get this in my console:

[DOM] Input elements should have autocomplete attributes (suggested: autocomplete='email', confirm at
 confirm at https://goo.gl/6KgkJg) 

So the autofill function needs to be there, just not sure why the current one doesn't work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant