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

Fix NestedFolderPicker submitting forms when opened
pull/72112/head
Josh Hunt 2 years ago committed by GitHub
parent f078a0bb40
commit b9fc097ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      public/app/core/components/NestedFolderPicker/Trigger.tsx

@ -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 ? (

Loading…
Cancel
Save