From b68276e219a46f5390355e6dd76cd63c586a6253 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 6 Jan 2015 18:19:55 +0000 Subject: [PATCH] Fix for serverside rendering --- core/modules/widgets/edit-text.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/edit-text.js b/core/modules/widgets/edit-text.js index 4a6181165..c2c5bd74a 100644 --- a/core/modules/widgets/edit-text.js +++ b/core/modules/widgets/edit-text.js @@ -73,8 +73,10 @@ EditTextWidget.prototype.render = function(parent,nextSibling) { this.fixHeight(); // Focus field if(this.editFocus === "true") { - domNode.focus(); - domNode.select(); + if(domNode.focus && domNode.select) { + domNode.focus(); + domNode.select(); + } } };