Skip to content

Commit 2e8b95a

Browse files
committed
fix registration placeholder replacement
1 parent dfab08c commit 2e8b95a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

paper-input.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@
256256
var version = Polymer.Element ? 'v1' : 'v0';
257257
var inputTemplate = Polymer.DomModule.import('paper-input', 'template#' + version);
258258
var inputPlaceholder = template.content.querySelector('#template-placeholder');
259-
inputPlaceholder.parentNode.replaceChild(inputTemplate.content, inputPlaceholder);
259+
if (inputPlaceholder) {
260+
inputPlaceholder.parentNode.replaceChild(inputTemplate.content, inputPlaceholder);
261+
}
262+
// else it's already been processed, probably in superclass
260263
},
261264

262265
/**

0 commit comments

Comments
 (0)