File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export function useFieldControlValidation() {
56
56
const commitValidation = useEventCallback ( async ( value : unknown , revalidate = false ) => {
57
57
const element = inputRef . current ;
58
58
if ( ! element ) {
59
+ console . log ( 'return no element' ) ;
59
60
return ;
60
61
}
61
62
Original file line number Diff line number Diff line change @@ -115,11 +115,10 @@ export const SliderRoot = React.forwardRef(function SliderRoot<
115
115
116
116
const sliderRef = React . useRef < HTMLElement > ( null ) ;
117
117
const controlRef = React . useRef < HTMLElement > ( null ) ;
118
- const hiddenInputRef = React . useRef < HTMLInputElement > ( null ) ;
119
118
const thumbRefs = React . useRef < ( HTMLElement | null ) [ ] > ( [ ] ) ;
120
119
const lastChangedValueRef = React . useRef < number | readonly number [ ] | null > ( null ) ;
121
120
const formatOptionsRef = useLatestRef ( format ) ;
122
- const mergedInputRef = useForkRef ( inputRefProp , hiddenInputRef , inputValidationRef ) ;
121
+ // const mergedInputRef = useForkRef(inputRefProp, inputValidationRef);
123
122
124
123
// We can't use the :active browser pseudo-classes.
125
124
// - The active state isn't triggered when clicking on the rail.
@@ -347,13 +346,15 @@ export const SliderRoot = React.forwardRef(function SliderRoot<
347
346
< CompositeList elementsRef = { thumbRefs } onMapChange = { setThumbMap } >
348
347
{ element }
349
348
< input
350
- type = "hidden"
351
349
{ ...getInputValidationProps ( {
350
+ // type: 'hidden',
352
351
disabled,
353
352
name,
354
- ref : mergedInputRef ,
353
+ ref : inputValidationRef ,
355
354
value : serializedValue ,
356
355
style : visuallyHidden ,
356
+ tabIndex : - 1 ,
357
+ 'aria-hidden' : true ,
357
358
} ) }
358
359
/>
359
360
</ CompositeList >
You can’t perform that action at this time.
0 commit comments