fix(Collapse): fix a dead loop caused by passing in a new array

This commit is contained in:
xzdry 2023-05-12 13:50:51 +08:00
parent ec163f7e01
commit cc3ab308a2

View File

@ -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'