Skip to content

Commit

Permalink
explain why its broken
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Feb 27, 2024
1 parent 4a2f77f commit 48553e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Fields/AutocompleteField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ type AutocompleteFieldProps<
component?: AutocompleteProps;
};

/**
* This component appears unstyled in Storybook because it is not properly prefixing its class names.
* However, if this library is used alongside globally included antd styles, it works somewhat fine.
* When we rip out antd 3 from our projects, we may want to remove the class prefix in this library to fix this.
*/
export function AutocompleteField<
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
Expand Down

0 comments on commit 48553e2

Please sign in to comment.