reactionic
reactionic copied to clipboard
create button with `type="submit"` property with `IonButton` (*Formsy integration)
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..
Just looking at the source for IonButton, have you tried props.htmlType="submit"
? It defaults to a <button>
if it isn't a link.