Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

fix paper-input #531 #130

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion iron-autogrow-textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@
*/
validate: function() {
// Use the nested input's native validity.
var valid = this.$.textarea.validity.valid;
// Note(cg): validate happens too early when `paper-texarea` has an initial value
// and is `auto-validate` (this.$ is undefined - https://github.com/PolymerElements/paper-input/issues/531)
var valid = this.$ ? this.$.textarea.validity.valid : true;

// Only do extra checking if the browser thought this was valid.
if (valid) {
Expand Down