This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ import {
1414 ComponentWithProps ,
1515 DeepPartial ,
1616} from "@chakra-ui/vue-system"
17- import {
18- ThemingProps ,
19- SystemStyleObject
20- } from "@chakra-ui/styled-system"
17+ import { ThemingProps , SystemStyleObject } from "@chakra-ui/styled-system"
2118import { dataAttr , filterUndefined , mergeWith } from "@chakra-ui/utils"
2219import { useButtonGroup } from "./button-group"
2320import { CIcon , IconProps } from "@chakra-ui/c-icon"
@@ -110,7 +107,7 @@ const CButtonIcon = defineComponent({
110107 } ,
111108} )
112109
113- export interface CButtonProps extends HTMLChakraProps < "button" > { }
110+ export interface CButtonProps extends HTMLChakraProps < "button" > { }
114111
115112/**
116113 * CButton
@@ -205,7 +202,8 @@ export const CButton = defineComponent({
205202 { ...( ( props . value . isDisabled || props . value . isLoading ) && {
206203 disabled : props . value . isDisabled || props . value . isLoading ,
207204 } ) }
208- type = { props . value . as === "button" ? undefined : props . value . type }
205+ type = { props . value . type }
206+ data-type = { dataAttr ( props . value . type ) }
209207 data-active = { dataAttr ( props . value . isActive ) }
210208 data-loading = { dataAttr ( props . value . isLoading ) }
211209 __css = { buttonStyles . value }
You can’t perform that action at this time.
0 commit comments