Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 50f7a44

Browse files
author
Yvonne Yip
committed
remove unnecessary code
1 parent 0cd5469 commit 50f7a44

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

paper-input.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,7 @@
319319

320320
// No caret animation if there is text in the input.
321321
if (!this.inputValue) {
322-
var width = this.$.inputCloneSpan.getBoundingClientRect().width;
323-
if (width < right) {
324-
this.$.caret.style.left = width + 'px';
325-
this.$.caret.classList.remove('focused');
326-
}
322+
this.$.caret.classList.remove('focused');
327323
}
328324
},
329325

0 commit comments

Comments
 (0)