Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- key: 'handleExpand',
- value: function handleExpand() {
- var _this2 = this;
- const {onExpand, slug} = this.props;
- // var onExpand = this.props.onExpand;
- this.startTransition();
- this.timeout = setTimeout(function () {
- _this2.setState({
- maxHeight: 'none',
- overflow: 'visible'
- });
- if (onExpand) {
- onExpand(slug);
- }
- }, this.state.duration);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement