mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-06 21:40:23 +08:00
fix(Collapse): fix a dead loop caused by passing in a new array
This commit is contained in:
parent
ec163f7e01
commit
cc3ab308a2
@ -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