diff --git a/wcomponents-theme/src/main/js/wc/ui/dialogFrame.js b/wcomponents-theme/src/main/js/wc/ui/dialogFrame.js
index <HASH>..<HASH> 100644
--- a/wcomponents-theme/src/main/js/wc/ui/dialogFrame.js
+++ b/wcomponents-theme/src/main/js/wc/ui/dialogFrame.js
@@ -96,7 +96,7 @@ define(["wc/dom/classList",
 					else if ((formId = candidate.form)) {

 						return document.getElementById(formId);

 					}

-					return FORM.getAncestor(candidate);

+					return FORM.findAncestor(candidate);

 				}

 				else { // no clue to the form get the last form in the view

 					forms = document.getElementsByTagName("form");
Fix dialogFrame

Fixed a bug in dialogFrame which could cause a dialog to fail to open
if it is in an ajax response.