diff --git a/src/PickerInput/Selector/Input.tsx b/src/PickerInput/Selector/Input.tsx index 9bf9d7edb..fe92e83e3 100644 --- a/src/PickerInput/Selector/Input.tsx +++ b/src/PickerInput/Selector/Input.tsx @@ -52,6 +52,7 @@ export interface InputProps extends Omit((props, ref) => { const { + className, active, showActiveCls = true, suffixIcon, @@ -377,10 +378,14 @@ const Input = React.forwardRef((props, ref) => { return (
( if (input) { const { offsetWidth, offsetLeft, offsetParent } = input.nativeElement; const parentWidth = (offsetParent as HTMLElement)?.offsetWidth || 0; - const activeOffset = placementRight ? (parentWidth - offsetWidth - offsetLeft) : offsetLeft; + const activeOffset = placementRight ? parentWidth - offsetWidth - offsetLeft : offsetLeft; setActiveBarStyle(({ insetInlineStart, insetInlineEnd, ...rest }) => ({ ...rest, width: offsetWidth, - [offsetUnit]: activeOffset + [offsetUnit]: activeOffset, })); onActiveOffset(activeOffset); } @@ -243,6 +243,7 @@ function RangeSelector( (