humaan / Modaal

An accessible dialog window library for all humans.
http://humaan.com/modaal/
MIT License
2.72k stars 183 forks source link

Inline method hides content after close #64

Closed markpopkes closed 7 years ago

markpopkes commented 8 years ago

Not sure if this is a bug, but when you use the inline method -- which works awesome -- and then close the modal window, that element you launched is removed or hidden from the DOM.

Is there a way to avoid that?

I tried doing a callback function to set the CSS on the element to 'block', but that didn't work.

danhumaan commented 8 years ago

Hi @markpopkes, are you referring to the modaal window markup content being removed when it's closed, or the element you clicked to trigger the opening of the modaal being closed ?

If it's the modaal popup markup you're referring to, this is intentional to ensure the plugin isn't affecting the overall page accessibility by having hidden, unused content. Currently there is no way around this.

Feel free to set up a js fiddle and share so I can get an idea of your scenario and problem.

danb-humaan commented 7 years ago

Closing due to inactivity. If there's any followup, feel free to open up a new issue or re-open this one.