File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,8 @@ function RangeSelector<DateType extends object = any>(
187
187
const { offsetWidth, offsetLeft, offsetParent } = input . nativeElement ;
188
188
const parentWidth = ( offsetParent as HTMLElement ) ?. offsetWidth || 0 ;
189
189
const activeOffset = placementRight ? parentWidth - offsetWidth - offsetLeft : offsetLeft ;
190
- setActiveBarStyle ( ( ori ) => ( {
191
- ... ori ,
190
+ setActiveBarStyle ( ( { position } ) => ( {
191
+ position ,
192
192
width : offsetWidth ,
193
193
[ offsetUnit ] : activeOffset ,
194
194
} ) ) ;
@@ -198,7 +198,7 @@ function RangeSelector<DateType extends object = any>(
198
198
199
199
React . useEffect ( ( ) => {
200
200
syncActiveOffset ( ) ;
201
- } , [ activeIndex ] ) ;
201
+ } , [ activeIndex , alignedPlacement ] ) ;
202
202
203
203
// ======================== Clear =========================
204
204
const showClear = clearIcon && ( ( value [ 0 ] && ! disabled [ 0 ] ) || ( value [ 1 ] && ! disabled [ 1 ] ) ) ;
You can’t perform that action at this time.
0 commit comments