Skip to content

Commit f169871

Browse files
committed
Adjusted classname passing
1 parent 2eb2621 commit f169871

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/ui/input-with-button.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const InputWithButton = (props: InputWithButtonProps) => {
4040
variant,
4141
mutable,
4242
nameKey,
43+
className,
4344
...inputProps
4445
} = props;
4546

@@ -63,7 +64,7 @@ const InputWithButton = (props: InputWithButtonProps) => {
6364
<input
6465
{...inputProps}
6566
value={props.value ?? ""}
66-
className={classNames(`w-full bg-transparent focus:outline-none ${inputProps.className}`)}
67+
className={classNames("w-full bg-transparent focus:outline-none",className)}
6768
readOnly={!mutable || !inputProps.onChange}
6869
name={"input" + nameKey}
6970
/>

0 commit comments

Comments
 (0)