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

TextArea doesn't display line breaks in Read-Only mode (when the Material Theme is used) #301

Closed
jm2rodriguez opened this issue Jan 16, 2019 · 1 comment
Assignees

Comments

@jm2rodriguez
Copy link

TextArea doesn't display line breaks in Read-Only mode (when the Material Theme is used!)

    TextArea textArea = new TextArea();
    textArea.setValue("line1\nline2");    // line breaks are displayed

    TextArea textAreaReadOnly = new TextArea();
    textAreaReadOnly.setReadOnly(true);
    textAreaReadOnly.setValue("line1\nline2");    // line breaks aren't displayed
@jm2rodriguez jm2rodriguez changed the title TextArea doesn't display line breaks in Read-Only mode TextArea doesn't display line breaks in Read-Only mode (when the Material Theme is used) Jan 16, 2019
@Legioth
Copy link
Member

Legioth commented Jan 17, 2019

This seems to be a bug in the web component, so I'll move this issue to the appropriate repository.

It should be noted that when using the component without Flow, it seems like the invalid line wrapping is sometimes only applied when focusing the text area after toggling the readonly setting.

@tomivirkki tomivirkki transferred this issue from vaadin/vaadin-text-field-flow Jan 17, 2019
@tomivirkki tomivirkki self-assigned this Jan 17, 2019
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

4 participants