Comments (6)
I think I know why this broke. But before explaining, @TangMichael, why are you applying the height
style when the rows
prop already determines the textarea height using the rows
value?
from material-ui.
@ZeeshanTamboli this broke in #40789 and, for some reason #41369 didn't fix it. May I ask you to take a look? Weirdly, the height seems to be multiplied x4 🤔
from material-ui.
@ZeeshanTamboli We used the height
style to have a more precise size to match the designs to the pixels. Can the rows
value be used to do the same?
After seeing your comments with the rows, I can see that the height of the style is multiplied by the rows number which is why on v5.15.11+, the height is 400 when I have rows set to 4 and the style of the height set to 100.
from material-ui.
If you want the height
to match the design exactly, why are you using the rows
prop?
from material-ui.
The codebase already contained those two props and it worked fine so it was kept like this. We only noticed this issue when upgrading the library version.
I can remove one of the other if that fixes the issue. Would you say this is intended behaviour starting from 5.15.11+
?
from material-ui.
Would you say this is intended behaviour starting from 5.15.11+?
This is the correct behavior. It was incorrect before 5.15.11
, and the new logic in #40789 exposed this improper prop usage. Either provide a static height using the height
style or let the textarea determine its height using the rows
attribute. The combination of both doesn't make sense. I think we can close this issue.
from material-ui.
Related Issues (20)
- MUI is not working with ToolTip
- Popper API - [component] HOT 2
- When using the latest version of MUI in Astro, it prompts that "require is not defined" HOT 2
- [docs][material-ui][Card] CardMedia description is wrong HOT 15
- Autocomplete with Hint is Broken
- Missing peer dependency for mui-material-nextjs HOT 1
- Styles not loaded on production build HOT 2
- [material-ui][Accordion] AccordionSummary should be rendered as a heading that wraps a button, per W3C Accordion Pattern standards HOT 6
- [material-ui] After updating to 5.16.0, the theme default props are disabled. HOT 6
- [material-ui][theme] Lower CSS Specificity for color scheme rules in CSS Vars Theme HOT 1
- [material-ui]TextField] label doesn't take its place after clearing value via inputRef (uncontrolled state) HOT 3
- [Joy-ui][Autocomplete] In nextjs, the Autocomplete component is opened for the first time and an error is reported HOT 1
- [JoyUI] [DialogTitle] level prop doesn't accept object HOT 1
- The conflict between the typescript version of package.json and eslint requirements HOT 1
- [Badge] component shows content incorrectly on emojis, asian characters, etc HOT 1
- [material-ui][Typography] Enforce responsive typography type checking in `sx` prop HOT 4
- [Autocomplete] Allow the clear x-button to be accessible via tabbing HOT 1
- Continuous Releases for material-ui using pkg.pr.new HOT 2
- [docs] CSS modules customization guide is incomplete
- Upgrading to 5.16.1 ignores `defaultProps` in MUI theme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.