Menu icon Foundation

My Posts

No Content

My Comments

Chris Sun commented on Dominik Scholz's post almost 3 years

 I got the open/close events firing by following a previous comment made by Zac Feuerborn which mentioned "reflow".  I'm using Foundation 5.5.3 
# Reflow will make Foundation check the DOM

for any elements and re-apply any listeners to them.

$(document).foundation('reveal', 'reflow');
$(document).on('open.fndtn.reveal', '[data-reveal]', function () {
console.log('Modal was opened');
});

Posts Followed


Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Dominik Scholz's post almost 3 years

 I got the open/close events firing by following a previous comment made by Zac Feuerborn which mentioned "reflow".  I'm using Foundation 5.5.3 
# Reflow will make Foundation check the DOM

for any elements and re-apply any listeners to them.

$(document).foundation('reveal', 'reflow');
$(document).on('open.fndtn.reveal', '[data-reveal]', function () {
console.log('Modal was opened');
});

Posts Followed

Following

  • No Content

Followers

  • No Content