Skip to content

Commit

Permalink
fix: input props type
Browse files Browse the repository at this point in the history
  • Loading branch information
jer3m01 committed Feb 25, 2024
1 parent 21a8d65 commit faad31f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
11 changes: 9 additions & 2 deletions packages/core/src/checkbox/checkbox-input.tsx
Expand Up @@ -14,7 +14,14 @@ import {
mergeRefs,
visuallyHiddenStyles,
} from "@kobalte/utils";
import { JSX, createEffect, createSignal, on, splitProps } from "solid-js";
import {
ComponentProps,
JSX,
createEffect,
createSignal,
on,
splitProps,
} from "solid-js";

import {
FORM_CONTROL_FIELD_PROP_NAMES,
Expand Down Expand Up @@ -155,7 +162,7 @@ export function CheckboxInput(props: CheckboxInputProps) {
onBlur={onBlur}
{...formControlContext.dataset()}
{...context.dataset()}
{...others}
{...(others as ComponentProps<"input">)}
/>
);
}
3 changes: 2 additions & 1 deletion packages/core/src/radio-group/radio-group-item-input.tsx
Expand Up @@ -14,6 +14,7 @@ import {
visuallyHiddenStyles,
} from "@kobalte/utils";
import {
ComponentProps,
JSX,
createEffect,
createSignal,
Expand Down Expand Up @@ -161,7 +162,7 @@ export function RadioGroupItemInput(props: RadioGroupItemInputProps) {
onFocus={onFocus}
onBlur={onBlur}
{...radioContext.dataset()}
{...others}
{...(others as ComponentProps<"input">)}
/>
);
}
4 changes: 2 additions & 2 deletions packages/core/src/switch/switch-input.tsx
Expand Up @@ -14,7 +14,7 @@ import {
mergeRefs,
visuallyHiddenStyles,
} from "@kobalte/utils";
import { JSX, splitProps } from "solid-js";
import { ComponentProps, JSX, splitProps } from "solid-js";

import {
FORM_CONTROL_FIELD_PROP_NAMES,
Expand Down Expand Up @@ -110,7 +110,7 @@ export function SwitchInput(props: SwitchInputProps) {
onBlur={onBlur}
{...formControlContext.dataset()}
{...context.dataset()}
{...others}
{...(others as ComponentProps<"input">)}
/>
);
}

0 comments on commit faad31f

Please sign in to comment.