@mackin.com/styleguide 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1612,12 +1612,12 @@ const ErrorModal = (props) => {
|
|
|
1612
1612
|
const Form = React__namespace.forwardRef((props, ref) => {
|
|
1613
1613
|
const { inline, children, onSubmit } = props, rest = __rest(props, ["inline", "children", "onSubmit"]);
|
|
1614
1614
|
const theme = useThemeSafely();
|
|
1615
|
-
return (react.jsx("form", Object.assign({ ref: ref, className: "form", css: {
|
|
1615
|
+
return (react.jsx("form", Object.assign({ ref: ref, className: "form" }, rest, { css: {
|
|
1616
1616
|
display: 'flex',
|
|
1617
1617
|
flexDirection: props.inline ? 'row' : 'column',
|
|
1618
1618
|
alignItems: props.inline ? 'flex-end' : 'normal',
|
|
1619
1619
|
gap: theme.controls.gap
|
|
1620
|
-
}
|
|
1620
|
+
}, onSubmit: e => {
|
|
1621
1621
|
e.preventDefault();
|
|
1622
1622
|
e.stopPropagation();
|
|
1623
1623
|
if (onSubmit) {
|