Sha256: 0b7d5f9c3be6d13c33c9d6e270e492cc0a6e02410b911adb2a030fb631062bc2

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

import React from 'react';
import { observer } from 'mobx-react';
import { action } from 'mobx';
import TextInput from 'grommet/components/TextInput';


@observer
export default class TextWrapper extends React.PureComponent {
    @action.bound focus() {
        this.inputRef.componentRef.focus();
    }
    render() {
        return (
            <TextInput
                ref={f => (this.inputRef = f)}
                {...this.props} onDOMChange={this.props.onChange}
            />
        );
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hippo-fw-0.9.7 client/hippo/components/form/fields/text-wrapper.jsx
hippo-fw-0.9.6 client/hippo/components/form/fields/text-wrapper.jsx
hippo-fw-0.9.5 client/hippo/components/form/fields/text-wrapper.jsx
hippo-fw-0.9.4 client/hippo/components/form/fields/text-wrapper.jsx
hippo-fw-0.9.3 client/hippo/components/form/fields/text-wrapper.jsx
hippo-fw-0.9.2 client/hippo/components/form/fields/text-wrapper.jsx
hippo-fw-0.9.1 client/hippo/components/form/fields/text-wrapper.jsx