Open pixagraphic opened 4 years ago
There is no console error in Windows10 and Firefox 70.0.1
same as https://github.com/ElemeFE/element/issues/15183#issuecomment-508893460
vue.runtime.esm.js:619 [Vue warn]: Error in callback for immediate watcher "data": "TypeError: Cannot read property 'reduce' of null"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Element UI version
2.12.0
OS/Browsers version
Mac OSx 10.15.1, Firefox 70.0.1
Vue version
2.6.10
Reproduction Link
https://codepen.io/pixagraphic/pen/YzzdweK
Steps to reproduce
Simple create a multiselect table with
:reserve-selection:="true"
and required rowKey method. (see pen) Console will output an errorTypeError: "data is null
.What is Expected?
Expected behaviour would be no console errors.
What is actually happening?
updateExpandRows()
in "packages/table/src/store/expand.js" does not check if data is null. Statementif (!data) return;
is required beforethis.states.expandRows = data.slice();