diff --git a/CHANGELOG.md b/CHANGELOG.md index e29bd79d846..a92bb6859b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ - Fixed `EuiDataGrid` column property `displayAsText`. Column headers prefer `displayAsText` over `id`; `display` still takes precedence. If provided, the filter in the sort-popover will search against `displayAsText` instead of `id`. ([#4351](https://github.com/elastic/eui/pull/4351)) - Fixed propagation of `esc` key presses closing parent popovers ([#4336](https://github.com/elastic/eui/pull/4336)) - Fixed overwritten `isDisabled` prop on `EuiListGroupItem` `extraAction` config ([#4359](https://github.com/elastic/eui/pull/4359)) - +- Fixed `inputRef` for `EuiCheckbox` ([#4298](https://github.com/elastic/eui/pull/4298)) **Theme: Amsterdam** diff --git a/src/components/form/checkbox/checkbox.tsx b/src/components/form/checkbox/checkbox.tsx index 236777dd1c3..ded6d3f0df7 100644 --- a/src/components/form/checkbox/checkbox.tsx +++ b/src/components/form/checkbox/checkbox.tsx @@ -80,11 +80,11 @@ export class EuiCheckbox extends Component { type, disabled, compressed, + indeterminate, + inputRef, ...rest } = this.props; - const { indeterminate, ...inputProps } = rest; // `indeterminate` is set dynamically later - const classes = classNames( 'euiCheckbox', type && typeToClassNameMap[type], @@ -115,7 +115,7 @@ export class EuiCheckbox extends Component { onChange={onChange} disabled={disabled} ref={this.setInputRef} - {...inputProps} + {...rest} />