Skip to content

Commit

Permalink
fix(comp:checkbox): button theme not registered (#1758)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Dec 11, 2023
1 parent d1a3297 commit 534cf7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/checkbox/src/Checkbox.tsx
Expand Up @@ -14,6 +14,7 @@ import { isNil } from 'lodash-es'
import { useAccessorAndControl } from '@idux/cdk/forms'
import { callEmit, useKey } from '@idux/cdk/utils'
import { ɵWave, type ɵWaveInstance } from '@idux/components/_private/wave'
import { getButtonThemeTokens } from '@idux/components/button'
import { useGlobalConfig } from '@idux/components/config'
import { FORM_TOKEN, useFormElement, useFormItemRegister } from '@idux/components/form'
import { useThemeToken } from '@idux/components/theme'
Expand All @@ -37,8 +38,9 @@ export default defineComponent({
const key = useKey()
const common = useGlobalConfig('common')
const { globalHashId, hashId, registerToken } = useThemeToken('checkbox')
const { hashId: buttonHashId } = useThemeToken('button')
const { hashId: buttonHashId, registerToken: registerButtonToken } = useThemeToken('button')
registerToken(getThemeTokens)
registerButtonToken(getButtonThemeTokens)

const mergedPrefixCls = computed(() => `${common.prefixCls}-checkbox`)
const config = useGlobalConfig('checkbox')
Expand Down

0 comments on commit 534cf7e

Please sign in to comment.