We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9b4cd commit 82feda0Copy full SHA for 82feda0
packages/components/src/components/Select/index.tsx
@@ -87,18 +87,12 @@ export function Select({
87
}, [open, setOpen])
88
89
const handleOpenChange = (open: boolean) => {
90
- if (onOpenChange) {
91
- onOpenChange(open)
92
- return
93
- }
+ onOpenChange?.(open)
94
setOpen(open)
95
}
96
97
const handleValueChange = (nextValue: string) => {
98
- if (onValueChange) {
99
- onValueChange(nextValue)
100
101
+ onValueChange?.(nextValue)
102
103
if (type === 'default') return
104
if (type === 'radio') {
0 commit comments