mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NestedFolderPicker: Fix forms being submitted when opening folder picker (#72109)
Fix NestedFolderPicker submitting forms when opened
This commit is contained in:
parent
f078a0bb40
commit
b9fc097ccd
@ -25,7 +25,12 @@ function Trigger({ isLoading, label, ...rest }: TriggerProps, ref: React.Forward
|
|||||||
</div>
|
</div>
|
||||||
) : undefined}
|
) : 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 ? (
|
{isLoading ? (
|
||||||
<Skeleton width={100} />
|
<Skeleton width={100} />
|
||||||
) : label ? (
|
) : label ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user