armstrong-react
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -32,2 +32,4 @@ import * as PropTypes from "prop-types"; | ||
focusFirstEmptyInput?: boolean; | ||
/** (() => void) Allows custom submit handling */ | ||
onSubmit?: () => void; | ||
} | ||
@@ -34,0 +36,0 @@ export interface IFormContext { |
@@ -95,2 +95,5 @@ "use strict"; | ||
_this.preventDefault = function (e) { | ||
if (_this.props.onSubmit) { | ||
_this.props.onSubmit(); | ||
} | ||
e.preventDefault(); | ||
@@ -97,0 +100,0 @@ return false; |
{ | ||
"name": "armstrong-react", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Rocketmakers Armstrong library of React components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
769016
15182