Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Prevent rendering of SearchBox #3674

Draft
wants to merge 1 commit into
base: 7.3
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -22,21 +22,5 @@ exports[`<MultiSelectBox/> should render correctly. 1`] = `
values={Array []}
/>
</ul>
<Component
IconButtonComponent={[Function]}
IconComponent={[Function]}
ListPreviewElement={[Function]}
MultiSelectBox_ListPreviewSortable={[Function]}
SelectBox={[Function]}
allowEmpty={true}
dndType="multiselect-box-value"
onCreateNew={[MockFunction]}
onValueChange={[Function]}
onValuesChange={[MockFunction]}
optionValueField="value"
options={Array []}
value=""
values={Array []}
/>
</div>
`;
Expand Up @@ -185,6 +185,7 @@ class MultiSelectBox extends PureComponent {
render() {
const {
searchOptions,
displaySearchBox,
values,
optionValueField,
theme,
Expand Down Expand Up @@ -217,13 +218,13 @@ class MultiSelectBox extends PureComponent {
disabled={disabled}
/>
</ul>
<SelectBox
{displaySearchBox && (<SelectBox
{...omit(this.props, ['theme', 'className'])}
options={filteredSearchOptions}
value=""
onValueChange={this.handleNewValueSelected}
disabled={disabled}
/>
/>)}
</div>
);
}
Expand Down