mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-26 03:02:12 +00:00
fixed issue where modal trigger broke navbar
This commit is contained in:
11
app/javascript/components/modal.js
Normal file
11
app/javascript/components/modal.js
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
const triggerModalEvent = () => {
|
||||
const btn = document.getElementById("modalTrigger");
|
||||
const modal = document.getElementById("myModal");
|
||||
|
||||
btn.addEventListener('click', function(event) {
|
||||
$('#myModal').modal('show');
|
||||
});
|
||||
}
|
||||
|
||||
export { triggerModalEvent }
|
||||
Reference in New Issue
Block a user