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(
95
95
const navContext = useContext ( NavContext ) ;
96
96
97
97
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 ) ;
99
100
100
101
const active =
101
102
propActive == null && key != null
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ const ListGroupItem: ListGroupItem = React.forwardRef(
102
102
< AbstractNavItem
103
103
ref = { ref }
104
104
{ ...props }
105
- eventKey = { makeEventKey ( eventKey || null , props . href ) }
105
+ // TODO: Restrict eventKey to string in v5?
106
+ eventKey = { makeEventKey ( eventKey as any , props . href ) }
106
107
// eslint-disable-next-line no-nested-ternary
107
108
as = { as || ( action ? ( props . href ? 'a' : 'button' ) : 'div' ) }
108
109
onClick = { handleClick }
You can’t perform that action at this time.
0 commit comments