frayerjj-frontend 0.8.3 → 0.8.5
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 +1 -1
- package/src/autocomplete.js +3 -1
- package/src/modal.js +2 -0
package/package.json
CHANGED
package/src/autocomplete.js
CHANGED
|
@@ -28,7 +28,9 @@ export const autocomplete = {
|
|
|
28
28
|
});
|
|
29
29
|
ul.appendChild(li);
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
requestAnimationFrame(() => {
|
|
32
|
+
ul.style.display = 'block';
|
|
33
|
+
}); // Show after render to prevent hiding due to click listener on document
|
|
32
34
|
} else ul.style.display = 'none';
|
|
33
35
|
},
|
|
34
36
|
init: () => {
|
package/src/modal.js
CHANGED
|
@@ -52,6 +52,8 @@ export const modal = {
|
|
|
52
52
|
});
|
|
53
53
|
} else loading.stop();
|
|
54
54
|
msg.verbose('AJAX Modal Loaded');
|
|
55
|
+
const loadedEvent = new Event('ajaxModal.loaded', { bubbles: true });
|
|
56
|
+
el.dispatchEvent(loadedEvent);
|
|
55
57
|
if (!el.getAttribute('modal-info')) {
|
|
56
58
|
msg.verbose('Adding submit handler to AJAX Modal');
|
|
57
59
|
ajaxModal.querySelector('.btn-save').addEventListener('click', () => {
|