Skip to content

amp-bind: Update textarea initial value via [defaultText]#22205

Merged
dreamofabear merged 4 commits intoampproject:masterfrom
dreamofabear:textarea-defaultText
May 9, 2019
Merged

amp-bind: Update textarea initial value via [defaultText]#22205
dreamofabear merged 4 commits intoampproject:masterfrom
dreamofabear:textarea-defaultText

Conversation

@dreamofabear
Copy link
Copy Markdown

Fixes #21053.

Copy link
Copy Markdown
Contributor

@honeybadgerdontcare honeybadgerdontcare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validation lgtm

@dreamofabear
Copy link
Copy Markdown
Author

dreamofabear commented May 9, 2019

/to @cvializ

@dreamofabear dreamofabear requested a review from cvializ May 9, 2019 16:07
Copy link
Copy Markdown
Contributor

@cvializ cvializ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it [defaultText] or [defaulttext]? The docs and tests seem to show defaultText but the implementation uses defaulttext.

@dreamofabear
Copy link
Copy Markdown
Author

Good question. The implementation lowercases attribute names, so any casing will work (which is also why I wrote the tests as such).

Copy link
Copy Markdown
Contributor

@cvializ cvializ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks for explaining. LGTM!

@dreamofabear dreamofabear merged commit 45d1611 into ampproject:master May 9, 2019
@dreamofabear dreamofabear deleted the textarea-defaultText branch May 9, 2019 17:47
twifkak added a commit to twifkak/amphtml that referenced this pull request May 10, 2019
@twifkak twifkak mentioned this pull request May 10, 2019
twifkak added a commit that referenced this pull request May 10, 2019
* cl/247283168 Revision bump for #22187

* cl/247285377 Revision bump for #22175

* cl/247510905 Revision bump for #22205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clearing a form will reset the element to its binding value with input and not textarea

5 participants