We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19c10e4 commit f558f82Copy full SHA for f558f82
src/components/shared/form/Form.tsx
@@ -196,12 +196,20 @@ const Radio = ({
196
)
197
}
198
199
-const Tag = ({ name, ...props }: TagInputProps): JSX.Element => {
+const Tag = ({
200
+ name,
201
+ rules,
202
+ ...props
203
+}: {
204
+ name: string
205
+ rules?: Record<string, unknown>
206
+} & TagInputProps): JSX.Element => {
207
const { control } = useFormContext()
208
return (
209
<Controller
210
name={name}
211
control={control}
212
+ rules={rules}
213
render={() => <TagInput name={name} {...props} />}
214
/>
215
0 commit comments