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

create button with type="submit" property with IonButton (*Formsy integration) #76

Open
asafshen opened this issue Nov 21, 2016 · 1 comment

Comments

@asafshen
Copy link

Hi,

I have just started to work with React-Ioninc, its great.

I want to create an IonButton with underlying <button/> element with type="submit" property.
The reason is that formsy-react relies on this property to initiate form submission.

Does anyone have an idea?

By the way - i noticed that IonButton has type (one of "outline", "clear", "icon-clear"), maybe it worth change it name to styleType and give the programer to pass properties to the underlying <button/> element..

@meticoeus
Copy link

Just looking at the source for IonButton, have you tried props.htmlType="submit"? It defaults to a <button> if it isn't a link.

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