Skip to content

Commit a28f8aa

Browse files
chore(deps): update dependency @types/react to v19.2.9 (ant-design#56819)
* chore(deps): update dependency @types/react to v19.2.10 * improve type * update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: thinkasany <480968828@qq.com>
1 parent 4ab4a82 commit a28f8aa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

components/input/OTP/OTPInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const OTPInput = React.forwardRef<InputRef, OTPInputProps>((props, ref) => {
2323

2424
// ========================== Ref ===========================
2525
const inputRef = React.useRef<InputRef>(null);
26+
2627
React.useImperativeHandle(ref, () => inputRef.current!);
2728

2829
// ========================= Input ==========================
@@ -40,7 +41,7 @@ const OTPInput = React.forwardRef<InputRef, OTPInputProps>((props, ref) => {
4041
});
4142
};
4243

43-
const onInternalFocus = (e: React.FocusEvent<HTMLInputElement>) => {
44+
const onInternalFocus: React.FocusEventHandler<HTMLInputElement> = (e) => {
4445
onFocus?.(e);
4546
syncSelection();
4647
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
"@types/pngjs": "^6.0.5",
213213
"@types/prismjs": "^1.26.5",
214214
"@types/progress": "^2.0.7",
215-
"@types/react": "19.2.7",
215+
"@types/react": "19.2.9",
216216
"@types/react-dom": "^19.2.3",
217217
"@types/react-highlight-words": "^0.20.0",
218218
"@types/semver": "^7.7.1",

0 commit comments

Comments
 (0)