Skip to content

[EnhancedTextarea] add rowsMax property#1562

Merged
shaurya947 merged 1 commit intomui:masterfrom
oliviertassinari:textarea
Sep 29, 2015
Merged

[EnhancedTextarea] add rowsMax property#1562
shaurya947 merged 1 commit intomui:masterfrom
oliviertassinari:textarea

Conversation

@oliviertassinari
Copy link
Copy Markdown
Member

No description provided.

@oliviertassinari oliviertassinari deleted the textarea branch September 25, 2015 19:48
@oliviertassinari oliviertassinari restored the textarea branch September 26, 2015 08:22
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

rowsMax :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see that you made the styles global.

Do you think in the future we could use some styles from the theme for this component? That would cause issues with this global approach right? Nearly all components implement a getStyles() method. I think we should be consistent about that. What do you think @oliviertassinari?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm using a global styles for performance reasons.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What do you think @hai-cea?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@shaurya947 @oliviertassinari I think declaring the constant in this way is fine here. Since the styles object doesn't depend on the instance of the component, declaring the constant outside is a little more efficient.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

shaurya947 added a commit that referenced this pull request Sep 29, 2015
[EnhancedTextarea] add rowsMax property
@shaurya947 shaurya947 merged commit fc0713e into mui:master Sep 29, 2015
@oliviertassinari oliviertassinari deleted the textarea branch November 3, 2015 10:51
@zannager zannager added scope: text field Changes related to the text field. component: TextareaAutosize The React component. labels Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: TextareaAutosize The React component. scope: text field Changes related to the text field.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants