@rebilly/instruments 3.11.1-beta.0 → 3.12.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -155,6 +155,8 @@ export function MountMethods({
|
|
|
155
155
|
const details = document.querySelectorAll('.rebilly-instruments-accordion');
|
|
156
156
|
// Add the onclick listeners.
|
|
157
157
|
details.forEach((targetDetail) => {
|
|
158
|
+
// set to open by default, will be closed by timeout below
|
|
159
|
+
targetDetail.open = true;
|
|
158
160
|
targetDetail.querySelector('summary').addEventListener('click', () => {
|
|
159
161
|
// Close all the accordion that are not targetDetail.
|
|
160
162
|
details.forEach((detail) => {
|
|
@@ -163,8 +165,13 @@ export function MountMethods({
|
|
|
163
165
|
});
|
|
164
166
|
});
|
|
165
167
|
|
|
166
|
-
//
|
|
167
|
-
|
|
168
|
+
// All details must be open to connect to Postmate than closed
|
|
169
|
+
setTimeout(() => {
|
|
170
|
+
details.forEach((detail) => {
|
|
171
|
+
detail.removeAttribute('open');
|
|
172
|
+
});
|
|
173
|
+
details[0].open = true;
|
|
174
|
+
}, 100);
|
|
168
175
|
}
|
|
169
176
|
|
|
170
177
|
state.translate.translateItems();
|