From 369ae7f917c77c7fcccc8203deaaaac84db9e8df Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Fri, 11 May 2012 13:08:38 -0700 Subject: [PATCH] patch button names correctly --- packages/liveui/smartpatch.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/liveui/smartpatch.js b/packages/liveui/smartpatch.js index 74de577e0f..5bb44d3fe5 100644 --- a/packages/liveui/smartpatch.js +++ b/packages/liveui/smartpatch.js @@ -368,9 +368,13 @@ Meteor.ui._Patcher._copyAttributes = function(tgt, src) { if (typeof tgt.checked !== "undefined" || typeof src.checked !== "undefined") tgt.checked = src.checked; - if (src.nodeName === "INPUT" && src.type === "text") { - if (! target_focused) + if (src.nodeName === "INPUT") { + if (src.type === "text") { + if (! target_focused) + tgt.value = src.value; + } else { tgt.value = src.value; + } } if (src.name) tgt.name = src.name;