You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have fields that include both local and cloud file selections, as shown in the image below (Shadcn UI):
The <CloudFilesSelector /> component is not displayed when the tab is set to 'From Your Laptop', and vice versa. When I submit the form from the 'Local' tab with some files selected, I receive a validation error stating 'please select cloud files.' How can I skip the hidden cloudFiles field?
Additionally, formState.isValid is incorrect, making it difficult to properly disable the submit button.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have fields that include both local and cloud file selections, as shown in the image below (Shadcn UI):
The
<CloudFilesSelector />
component is not displayed when the tab is set to 'From Your Laptop', and vice versa. When I submit the form from the 'Local' tab with some files selected, I receive a validation error stating 'please select cloud files.' How can I skip the hiddencloudFiles
field?Additionally,
formState.isValid
is incorrect, making it difficult to properly disable the submit button.Beta Was this translation helpful? Give feedback.
All reactions