From: Marius Olbertz Date: Wed, 21 Sep 2016 14:56:21 +0000 (+0200) Subject: Add visual test for PR #9146. X-Git-Tag: v6.2.4-rc1~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9207%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Add visual test for PR #9146. --- diff --git a/test/visual/reveal/element-outside-dom-click.html b/test/visual/reveal/element-outside-dom-click.html new file mode 100644 index 000000000..6075eb680 --- /dev/null +++ b/test/visual/reveal/element-outside-dom-click.html @@ -0,0 +1,33 @@ + + + + + + + Foundation for Sites Testing + + + + +
+

Reveal

+ +
+

Avoid reveal modal closing upon click of an element not in the DOM

+

When an element inside the modal is removed on click, the modal would close because then the clicked element is not within the modal anymore (because it has been removed from the DOM). This example removes the button inside the modal on click and the modal should remain open. See issue #9146.

+

+ +
+

Clicking any of these triggers should close the modal.

+

+

+
+
+ + + + + +