Skip to content

Commit 611ef3a

Browse files
thinkasanyzombieJ
andauthored
fix: actions semantic (#718)
* fix: actions semantic * fix * empty * chore: tmp of ajv install * chore: bump father version --------- Co-authored-by: 二货机器人 <[email protected]>
1 parent 43705cc commit 611ef3a

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"eslint-plugin-jest": "^28.10.0",
7171
"eslint-plugin-unicorn": "^56.0.0",
7272
"expect.js": "~0.3.1",
73-
"father": "^4.1.1",
73+
"father": "^4.5.5",
7474
"glob": "^11.0.0",
7575
"husky": "^9.1.7",
7676
"jest-environment-jsdom": "^29.3.1",

src/InputNumber.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ const InternalInputNumber = React.forwardRef(
154154
...inputProps
155155
} = props;
156156

157-
const { classNames, styles } = React.useContext(SemanticContext) || {};
158-
159157
const inputClassName = `${prefixCls}-input`;
160158

161159
const inputRef = React.useRef<HTMLInputElement>(null);
@@ -619,10 +617,7 @@ const InternalInputNumber = React.forwardRef(
619617
onStep={onInternalStep}
620618
/>
621619
)}
622-
<div
623-
className={clsx(`${inputClassName}-wrap`, classNames?.actions)}
624-
style={styles?.actions}
625-
>
620+
<div className={`${inputClassName}-wrap`}>
626621
<input
627622
autoComplete="off"
628623
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)