Skip to content

Commit 4cb356e

Browse files
committed
fix(pf4): dual-list, removed isEqual from div attributes.
1 parent c20d89e commit 4cb356e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

packages/pf4-component-mapper/src/files/dual-list-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ const DualList = (props) => {
191191
filterValueTitle,
192192
filterValueText,
193193
filterOptionsText,
194+
isEqual: _isEqual,
194195
...rest
195196
} = useFieldApi({
196197
...props,
197198
isEqual: (current, initial) => isEqual([...(current || [])].sort(), [...(initial || [])].sort())
198199
});
199200

200201
const showError = touched && error;
201-
202202
const handleOptionClicked = (event, options, isRight) => {
203203
const {
204204
target: { value }

packages/pf4-component-mapper/src/tests/dual-list-select.test.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import { act } from 'react-dom/test-utils';
23
import FormRenderer from '@data-driven-forms/react-form-renderer';
34
import { mount } from 'enzyme';
45

@@ -215,11 +216,13 @@ describe('DualListSelect', () => {
215216
.simulate('click');
216217
wrapper.update();
217218

218-
wrapper
219-
.find(AngleLeftIcon)
220-
.parent()
221-
.props()
222-
.onClick();
219+
act(() => {
220+
wrapper
221+
.find(AngleLeftIcon)
222+
.parent()
223+
.props()
224+
.onClick();
225+
});
223226
wrapper.update();
224227

225228
wrapper.find('form').simulate('submit');

0 commit comments

Comments
 (0)