MCPcopy Create free account
hub / github.com/Lobos/react-ui / componentDidMount

Method componentDidMount

src/Textarea.js:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 }
20
21 componentDidMount (){
22 let el = this.element;
23
24 if(this.props.autoHeight){
25 this.lineHeight = getLineHeight(el);
26 this.paddingHeight = parseInt(computedStyle(el, 'paddingTop')) + parseInt(computedStyle(el, 'paddingBottom'));
27 }
28 }
29
30 componentWillReceiveProps(nextProps) {
31 let value = nextProps.value;

Callers

nothing calls this directly

Calls 2

getLineHeightFunction · 0.90
computedStyleFunction · 0.90

Tested by

no test coverage detected