Skip to content

v3.4.0

Choose a tag to compare

@cheton cheton released this 22 May 09:13
· 5 commits to master since this release
  • [IE only] Address an issue that the change event never fires for indeterminate input elements (6a2fba9)

    Use onClick event handler if you want to have a cross-browser solution for handling indeterminate input elements.

    <Checkbox
        checked={checked}
        indeterminate={indeterminate}
        onClick={(event) => {
            const { checked, indeterminate } = event.target;
            if ((!checked && indeterminate) || checked) {
                // Check
            } else {
                // Uncheck
            }
        }}
    />

    Also see jquery/jquery#1698