Skip to content

Commit

Permalink
Merge branch '4.9.0' into fix/6693-cannot-perform-a-react-state-updat…
Browse files Browse the repository at this point in the history
…e-on-an-unmounted-component
  • Loading branch information
chantal-kelm authored May 30, 2024
2 parents 4460782 + 71199ab commit e4266c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 113 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Removed AngularJS component `click-action` [#6613](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6613)
- Removed AngularJS service `config-handler` [#6631](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6631)
- Removed legacy discover references and methods [#6646](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6646)
- Removed custom EuiSuggestItem component in favor of OUI's native component [#6714](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6714)

## Wazuh v4.8.0 - OpenSearch Dashboards 2.10.0 - Revision 08

Expand Down
2 changes: 0 additions & 2 deletions plugins/main/public/components/eui-suggest/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export { EuiSuggestInput } from './suggest_input';

export { EuiSuggestItem } from './suggest_item';

export { EuiSuggest } from './suggest';
10 changes: 5 additions & 5 deletions plugins/main/public/components/eui-suggest/suggest.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { EuiSuggestItem } from './suggest_item';
import { EuiSuggestItem } from '@elastic/eui';
import { EuiSuggestInput } from './suggest_input';

export class EuiSuggest extends Component {
state = {
value: '',
status: 'unsaved'
status: 'unsaved',
};

getValue = val => {
this.setState({
value: val
value: val,
});
};

Expand Down Expand Up @@ -76,9 +76,9 @@ EuiSuggest.propTypes = {
onInputChange: PropTypes.func,
isOpen: PropTypes.bool,
onClosePopover: PropTypes.func,
onPopoverFocus: PropTypes.func
onPopoverFocus: PropTypes.func,
};

EuiSuggestInput.defaultProps = {
status: 'unchanged'
status: 'unchanged',
};
106 changes: 0 additions & 106 deletions plugins/main/public/components/eui-suggest/suggest_item.js

This file was deleted.

0 comments on commit e4266c7

Please sign in to comment.