reactionic icon indicating copy to clipboard operation
reactionic copied to clipboard

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

Open asafshen opened this issue 8 years ago • 1 comments

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..

asafshen avatar Nov 21 '16 12:11 asafshen

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

meticoeus avatar Jan 26 '17 13:01 meticoeus