Skip to content

Releases: trendmicro-frontend/react-form-control

v2.0.0

14 Dec 12:43
8f5022c
Compare
Choose a tag to compare

⚠️ Breaking Changes ⚠️

  • Bump the peerDep for react to >= 16.3.0

🎉 Improvements 🎉

  • Support ref forwarding on form controls (#7)
function Example() {
    const inputRef = React.useRef(null);
    const selectRef = React.useRef(null);
    const textareaRef = React.useRef(null);
    const handleChange = (_ref) => (e) => {
        console.log(e.target.value);
        console.log(_ref.current.value);
    };

    return (
        <>
            <Input ref={inputRef} onChange={handleChange(inputRef)} />
            <Select ref={selectRef} onChange={handleChange(selectRef)}>
                <option value="1">One</option>
                <option value="2">Two</option>
            </Select>
            <Textarea ref={textareaRef} onChange={handleChange(textareaRef)} />
        </>
    );
}

v1.1.0

19 Jul 08:51
Compare
Choose a tag to compare
  • Remove nib dependency and drop legacy browser support (b2ce6d4)
  • Drop support for Node.js 6 (000836d)

v1.0.0

25 Apr 14:42
Compare
Choose a tag to compare

Breaking Change

  • fcSize is removed, use lg, md, sm to specify the form control size.
  • Extra small size (xs) is no longer supported (closes #2)

v0.1.0

28 Mar 16:49
911060d
Compare
Choose a tag to compare

First release