File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/@react-aria/checkbox/docs Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ with a keyboard, not with a mouse or touch.
115
115
``` tsx example export=true
116
116
import {VisuallyHidden } from ' @react-aria/visually-hidden' ;
117
117
import {useFocusRing } from ' @react-aria/focus' ;
118
+ import {mergeProps } from ' @react-aria/utils' ;
118
119
119
120
function Checkbox(props ) {
120
121
let state = useToggleState (props );
@@ -126,7 +127,7 @@ function Checkbox(props) {
126
127
return (
127
128
<label style = { {display: ' flex' , alignItems: ' center' , opacity: props .isDisabled ? 0.4 : 1 }} >
128
129
<VisuallyHidden >
129
- <input { ... inputProps } { ... focusProps } ref = { ref } />
130
+ <input { ... mergeProps ( inputProps , focusProps ) } ref = { ref } />
130
131
</VisuallyHidden >
131
132
<svg
132
133
width = { 24 }
You can’t perform that action at this time.
0 commit comments