回答編集履歴
2
修正
test
CHANGED
@@ -27,6 +27,22 @@
|
|
27
27
|
this.tabs.addEventListener('click', this.handleClick.bind(this));
|
28
28
|
|
29
29
|
this.panels.addEventListener('transitionend', this.handleTransition.bind(this));
|
30
|
+
|
31
|
+
}
|
32
|
+
|
33
|
+
init() {
|
34
|
+
|
35
|
+
if (!this.element.classList.contains('is-active')){
|
36
|
+
|
37
|
+
this.close();
|
38
|
+
|
39
|
+
}else{
|
40
|
+
|
41
|
+
this.open();
|
42
|
+
|
43
|
+
this.height = this.panels.scrollHeight;
|
44
|
+
|
45
|
+
}
|
30
46
|
|
31
47
|
}
|
32
48
|
|
@@ -67,22 +83,6 @@
|
|
67
83
|
this.panels.style.maxHeight = `${this.height}px`;
|
68
84
|
|
69
85
|
}, 1);
|
70
|
-
|
71
|
-
}
|
72
|
-
|
73
|
-
init() {
|
74
|
-
|
75
|
-
if (!this.element.classList.contains('is-active')){
|
76
|
-
|
77
|
-
this.close();
|
78
|
-
|
79
|
-
}else{
|
80
|
-
|
81
|
-
this.open();
|
82
|
-
|
83
|
-
this.height = this.panels.scrollHeight;
|
84
|
-
|
85
|
-
}
|
86
86
|
|
87
87
|
}
|
88
88
|
|
1
修正
test
CHANGED
@@ -110,8 +110,6 @@
|
|
110
110
|
|
111
111
|
this.element.classList.add('is-hidden');
|
112
112
|
|
113
|
-
|
114
|
-
|
115
113
|
this.element.classList.remove('is-active');
|
116
114
|
|
117
115
|
}
|