MCPcopy Create free account
hub / github.com/DTStack/dt-react-component / handleChangeKey

Function handleChangeKey

src/drawer/index.tsx:115–118  ·  view source on GitHub ↗
(key: TabKey<T>)

Source from the content-addressed store, hash-verified

113 };
114
115 const handleChangeKey = (key: TabKey<T>) => {
116 !isControlled(props) && setInternalTabKey(key);
117 isTabMode(props) && props.onChange?.(key);
118 };
119
120 return (
121 <RcDrawer

Callers

nothing calls this directly

Calls 2

isControlledFunction · 0.70
isTabModeFunction · 0.70

Tested by

no test coverage detected