mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-06 21:40:23 +08:00
Merge pull request #713 from smartxworks/fix/collapse
fix(Collapse): fix a dead loop caused by passing in a new array
This commit is contained in:
commit
4fb5d3bba8
@ -69,7 +69,7 @@ export const Collapse = implementRuntimeComponent({
|
||||
const { elementRef, mergeState, slotsElements, customStyle, callbackMap } = props;
|
||||
|
||||
const [activeKey, setActiveKey] = useStateValue(
|
||||
defaultActiveKey.map(String),
|
||||
defaultActiveKey,
|
||||
mergeState,
|
||||
updateWhenDefaultValueChanges,
|
||||
'activeKey'
|
||||
|
Loading…
x
Reference in New Issue
Block a user