mirror of https://github.com/ElemeFE/element
Collapse: fix accordion panel name=0 closing issue (#3546)
parent
fef0334e43
commit
e09d7c74a4
|
@ -42,7 +42,7 @@
|
||||||
handleItemClick(item) {
|
handleItemClick(item) {
|
||||||
if (this.accordion) {
|
if (this.accordion) {
|
||||||
this.setActiveNames(
|
this.setActiveNames(
|
||||||
this.activeNames[0] &&
|
(this.activeNames[0] || this.activeNames[0] === 0) &&
|
||||||
this.activeNames[0] === item.name
|
this.activeNames[0] === item.name
|
||||||
? '' : item.name
|
? '' : item.name
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue