This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
OpenSource
/
dify
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
152
Wiki
Activity
Browse Source
fix: change `Switch.props.ref` to optional prop to align with `OriginalSwitch` (
#17443
)
tags/1.2.0
yusheng chen
7 months ago
parent
6efa882ca3
commit
dc9194ca00
No account linked to committer's email address
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
web/app/components/base/switch/index.tsx
+ 1
- 1
web/app/components/base/switch/index.tsx
View File
@@ -20,7 +20,7 @@ const Switch = (
disabled = false,
className,
}: SwitchProps & {
ref: React.RefObject<HTMLButtonElement>;
ref
?
: React.RefObject<HTMLButtonElement>;
},
) => {
const [enabled, setEnabled] = useState(defaultValue)
Write
Preview
Loading…
Cancel
Save