mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-22 11:48:46 +00:00
Fix call service data
This commit is contained in:
@@ -41,15 +41,16 @@ export default class JSONTextArea extends Component {
|
||||
render(props, { value, isValid }) {
|
||||
const style = {
|
||||
minWidth: 300,
|
||||
width: '100%',
|
||||
};
|
||||
if (!isValid) {
|
||||
style.border = '1px solid red';
|
||||
}
|
||||
return (
|
||||
<textarea
|
||||
<iron-autogrow-textarea
|
||||
value={value}
|
||||
style={style}
|
||||
onChange={this.onChange}
|
||||
onValue-Changed={this.onChange}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user