1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 08:20:46 +00:00

Fix problem with edit-text widget gaining class="undefined"

Fixes #269
This commit is contained in:
Jermolene 2013-12-12 18:52:51 +00:00
parent 3f3cac12ba
commit fd996bad20

View File

@ -45,7 +45,9 @@ EditTextWidget.prototype.render = function(parent,nextSibling) {
domNode.setAttribute("placeholder",this.editPlaceholder);
}
// Assign classes
domNode.className = this.editClass;
if(this.editClass) {
domNode.className = this.editClass;
}
// Set the text
var editInfo = this.getEditInfo();
if(this.editTag === "textarea") {