File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,8 @@ const DropdownItem: DropdownItem = React.forwardRef(
9595 const navContext = useContext ( NavContext ) ;
9696
9797 const { activeKey } = navContext || { } ;
98- const key = makeEventKey ( eventKey || null , href ) ;
98+ // TODO: Restrict eventKey to string in v5?
99+ const key = makeEventKey ( eventKey as any , href ) ;
99100
100101 const active =
101102 propActive == null && key != null
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ const ListGroupItem: ListGroupItem = React.forwardRef(
102102 < AbstractNavItem
103103 ref = { ref }
104104 { ...props }
105- eventKey = { makeEventKey ( eventKey || null , props . href ) }
105+ // TODO: Restrict eventKey to string in v5?
106+ eventKey = { makeEventKey ( eventKey as any , props . href ) }
106107 // eslint-disable-next-line no-nested-ternary
107108 as = { as || ( action ? ( props . href ? 'a' : 'button' ) : 'div' ) }
108109 onClick = { handleClick }
You can’t perform that action at this time.
0 commit comments