@loja-integrada/admin-components 0.12.1 → 0.12.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loja-integrada/admin-components",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "author": "Loja Integrada Front-End Team",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -73,6 +73,10 @@ const ButtonType = React.forwardRef(
73
73
  {children}
74
74
  </a>
75
75
  )
76
+ if (!props.type) {
77
+ // Default to button when missing type
78
+ props.type = 'button'
79
+ }
76
80
  return (
77
81
  <button {...props} ref={ref}>
78
82
  {children}
@@ -59,6 +59,7 @@ const ActionBarComponent = ({ onlyMobile, children }: ActionBarProps) => {
59
59
  (props?.loading ? ' pointer-events-none' : '')
60
60
  }
61
61
  onClick={props?.onClick}
62
+ type={props?.type || 'button'}
62
63
  >
63
64
  {props?.loading ? (
64
65
  <Icon icon="loading" className="p-px" />