From d70370f791709b5aac9b6facd30e06105540bc2c Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 6 Nov 2015 01:38:33 +0400 Subject: [PATCH] fix focus issue with forms in a dialog --- plugins/c9.ide.ui/forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/c9.ide.ui/forms.js b/plugins/c9.ide.ui/forms.js index 0ab3e6f8..400e7148 100644 --- a/plugins/c9.ide.ui/forms.js +++ b/plugins/c9.ide.ui/forms.js @@ -499,8 +499,8 @@ define(function(require, exports, module) { htmlNode = htmlNode.$int; } // if we have apf node, make sure apf child-parent links do not get broken - if (htmlNode.host && container.host) { - htmlNode.host.insertBefore(container.host, beforeNode && beforeNode.host); + if (htmlNode.host) { + htmlNode.host.insertBefore(container, beforeNode && beforeNode.host); } else { htmlNode.insertBefore(container.$ext, beforeNode || null); }