if we provide style attribute textAlign 'right | center' in the style attribute of TextField, text seems to be left aligned always.
it should align right, left or center according to the textAlign given
Text stays left aligned always.
like this - https://jsfiddle.net/manuanalakkad/d0fxs637/6/
I am trying to create a calculator kind of component in which I need to align text field to right which is currently not possible
| Tech | Version |
|--------------|---------|
| Material-UI | 0.20.0 |
| React | 16.3.2 |
| browser | chrome - 65.0.3325.181 |
@manu-codes Check the v1-beta branch out:
import React from "react";
import TextField from "material-ui/TextField";
function Align() {
return (
<TextField
id="align"
label="Label"
defaultValue="foo"
inputProps={{
style: { textAlign: "right" }
}}
/>
);
}
export default Align;
Most helpful comment
@manu-codes Check the v1-beta branch out:
https://codesandbox.io/s/23y18w9q10