Skip to content

Commit

Permalink
storybookjs#24127 bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioKavula committed Nov 22, 2023
1 parent 311cad6 commit a5092ac
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions code/ui/components/src/components/form/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,11 @@ type InputProps = Omit<
align?: Alignments;
valid?: ValidationStates;
height?: number;
ariaLabel?: string;
};
export const Input = Object.assign(
styled(
forwardRef<any, InputProps>(function Input({ size, valid, align, ariaLabel, ...props }, ref) {
return <input {...props} ref={ref} />;
forwardRef<any, InputProps>(function Input({ size, valid, align, name, ...props }, ref) {
return <input {...props} aria-label={name} ref={ref} />;
})
)<{
size?: Sizes;
Expand Down Expand Up @@ -166,8 +165,7 @@ type SelectProps = Omit<
export const Select = Object.assign(
styled(
forwardRef<any, SelectProps>(function Select({ size, valid, align, name, ...props }, ref) {
console.log(props);
return <select {...props} aria-label={name} name={name} ref={ref} />;
return <select {...props} aria-label={name} ref={ref} />;
})
)<SelectProps>(styles, sizes, validation, {
height: 32,
Expand Down Expand Up @@ -197,8 +195,7 @@ type TextareaProps = Omit<
export const Textarea = Object.assign(
styled(
forwardRef<any, TextareaProps>(function Textarea({ size, valid, align, name, ...props }, ref) {
console.log(props);
return <TextareaAutoResize {...props} aria-label={name} name={name} ref={ref} />;
return <TextareaAutoResize {...props} aria-label={name} ref={ref} />;
})
)<TextareaProps>(styles, sizes, alignment, validation, ({ height = 400 }) => ({
overflow: 'visible',
Expand Down

0 comments on commit a5092ac

Please sign in to comment.