Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paper-autogrow-textarea bug #1255

Closed
gertcuykens opened this issue Mar 4, 2015 · 4 comments
Closed

paper-autogrow-textarea bug #1255

gertcuykens opened this issue Mar 4, 2015 · 4 comments

Comments

@gertcuykens
Copy link

(exampel link removed let me know if you need a new one)

Can you confirm paper-autogrow-textarea has a bug or maybe vulcanize doing something wrong?

The very last line is a paper-autogrow-textarea. On the iphone4 simulator in chrome it can not be selected.
And also in desktop chrome it does not display the label, but when you put text in and remove it again then the label appears?

@gertcuykens
Copy link
Author

After allot of frustration I conclude paper-autogrow-textarea is broken
This fixed it a little bit

<paper-input-decorator label="Intoductie">
        <paper-autogrow-textarea style="min-height:16px;">
               <textarea name="intro" style="overflow:hidden;">{{intro}}</textarea>
         </paper-autogrow-textarea>
</paper-input-decorator>

Also note that if {{intro}} is page loaded with multiple lines you are screwed

@gertcuykens gertcuykens changed the title please confirm if this is a bug in paper-autogrow-textarea or vulcanize? paper-autogrow-textarea bug Mar 7, 2015
@gertcuykens
Copy link
Author

https://www.polymer-project.org/0.5/docs/elements/paper-autogrow-textarea.html

t1.value = 'some\ntext';
a1.update();

This also does not seem to fix the problem

@miztroh-zz
Copy link

Instead of setting min-height on the autogrow and hiding the overflow on the textarea, you could simply set rows="1" on the textarea.

You are right in saying that paper-autogrow-textarea's update() function doesn't seem to fix the multiline issue you're describing.

You should probably close this issue and file a new one on the appropriate repository.

https://github.com/polymer/paper-input

@gertcuykens
Copy link
Author

ok thanks ps can you fix my plunker so i can include a demo in the new issue :) http://embed.plnkr.co/js3uFQSRsIR7SuGLt2gP/preview

googlearchive/paper-input#162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants