Skip to content

Commit dcf7dda

Browse files
committed
fix: actions semantic
1 parent 43705cc commit dcf7dda

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/InputNumber.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,7 @@ const InternalInputNumber = React.forwardRef(
619619
onStep={onInternalStep}
620620
/>
621621
)}
622-
<div
623-
className={clsx(`${inputClassName}-wrap`, classNames?.actions)}
624-
style={styles?.actions}
625-
>
622+
<div className={`${inputClassName}-wrap`}>
626623
<input
627624
autoComplete="off"
628625
role="spinbutton"

tests/semantic.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ describe('InputNumber.Semantic', () => {
2525
classNames={testClassNames}
2626
/>,
2727
);
28+
2829
const input = container.querySelector('.rc-input-number')!;
2930
const prefix = container.querySelector('.rc-input-number-prefix')!;
3031
const suffix = container.querySelector('.rc-input-number-suffix')!;
31-
const actions = container.querySelector('.rc-input-number-input-wrap')!;
32+
const actions = container.querySelector('.rc-input-number-handler-wrap')!;
3233
expect(input.className).toContain(testClassNames.input);
3334
expect(prefix.className).toContain(testClassNames.prefix);
3435
expect(suffix.className).toContain(testClassNames.suffix);

0 commit comments

Comments
 (0)