Skip to content

Commit 22b1aca

Browse files
author
刘欢
committed
feat: useId params
1 parent 9a2425b commit 22b1aca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const Menu = React.forwardRef<MenuRef, MenuProps>((props, ref) => {
260260

261261
const containerRef = React.useRef<HTMLUListElement>();
262262

263-
const uuid = useId(id);
263+
const uuid = useId(id ?? 'rc-menu-uuid');
264264

265265
const isRtl = direction === 'rtl';
266266

0 commit comments

Comments
 (0)