Skip to content

EuiButtonGroup (and EuiButtonToggle) doesn't unmount properly #2736

@simianhacker

Description

@simianhacker

We are using the EuiButtonGroup for our ViewSwitcher in the Metrics UI. Whenever the DOM is re-rendered due to the data changing (by either selecting a different metric OR any other option), this component throws the following warning:

image

If we remove the component from the page everything works as expected.

Here is where we are using it: https://github.com/elastic/kibana/blob/master/x-pack/legacy/plugins/infra/public/components/waffle/view_switcher.tsx

Here is where I think the problem is: https://github.com/elastic/eui/blob/master/src/components/button/button_toggle/button_toggle.tsx#L104-L107 and https://github.com/elastic/eui/blob/master/src/components/inner_text/render_to_text.tsx

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions