vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.75k stars 771 forks source link

Close after page refresh #214

Closed mosesmc52 closed 8 years ago

mosesmc52 commented 8 years ago

Hi,

Everytime I refresh a page after the remodal box was launched the modal box is in open state. How do I default the modal box to a close state even after a page refresh?

dankreiger commented 8 years ago

@mosesmc52 I'm also having this issue

richtestani commented 8 years ago

Use the hashTrack options your modal window. data-remodal-options="hashTracking: false, closeOnOutsideClick: false"

As long as you are calling remodal normally (event based), this will work. if you call it from an instance, options do no seem to work (which is the issue I present in another issue).

rolivav commented 8 years ago

I am using remodal right now like this, and it works.

var modalSms = this.$('[data-remodal-id=modalSms]').remodal({
            'hashTracking': false,
           'closeOnOutsideClick': false
});
modalSms.open();