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

React- MUI Dropdown auto submits when placed in form element #66

Closed
paran0a opened this issue Jan 19, 2016 · 2 comments
Closed

React- MUI Dropdown auto submits when placed in form element #66

paran0a opened this issue Jan 19, 2016 · 2 comments

Comments

@paran0a
Copy link

paran0a commented Jan 19, 2016

Hi ,
I'm using React - MUI. I have a dropdown that is placed in form element.
Since dropdown consists of button that triggers dropdown (and few other elements ) that button auto submits my form.

I know that you can add type="button" as attribute to stop this from happening but I don't know where to place it.

@amorey
Copy link
Member

amorey commented Jan 19, 2016

@paran0a Thanks for creating this issue! I can take a closer look tonight.

In the mean time, if you want to dive into the code, we're about to release a new version of the React library so that would be a good place to start:
https://github.com/muicss/mui/tree/master/src/react
https://github.com/muicss/mui/tree/master/packages/npm

@amorey
Copy link
Member

amorey commented Jan 20, 2016

@paran0a This bug should be fixed in the newest version (0.3.0-rc1):
https://www.npmjs.com/package/muicss

Be careful if you're currently using version < 0.3.0 as there are breaking changes in the new (and much improved) React library.

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

2 participants