NestedFolderPicker: Fix forms being submitted when opening folder picker (#72109)

Fix NestedFolderPicker submitting forms when opened
This commit is contained in:
Josh Hunt 2023-07-21 12:57:09 +00:00 committed by GitHub
parent f078a0bb40
commit b9fc097ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,12 @@ function Trigger({ isLoading, label, ...rest }: TriggerProps, ref: React.Forward
</div>
) : undefined}
<button className={cx(styles.fakeInput, label ? styles.hasPrefix : undefined)} {...rest} ref={ref}>
<button
type="button"
className={cx(styles.fakeInput, label ? styles.hasPrefix : undefined)}
{...rest}
ref={ref}
>
{isLoading ? (
<Skeleton width={100} />
) : label ? (