From 59ee357528c2cb9f2159d27ca09048f78b942690 Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Wed, 21 Sep 2016 16:56:21 +0200 Subject: [PATCH] Add visual test for PR #9146. --- .../reveal/element-outside-dom-click.html | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/visual/reveal/element-outside-dom-click.html 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.

+

+

+
+
+ + + + + + -- 2.47.2