Skip to content

Commit

Permalink
BUGFIX: while loading, dont show that option is invalid in draggable …
Browse files Browse the repository at this point in the history
…select box options
  • Loading branch information
mhsdesign committed Jul 11, 2023
1 parent 823f2fc commit 02c4fe9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class MultiSelectBox_ListPreviewSortable extends PureComponent {
).isRequired,
values: PropTypes.arrayOf(PropTypes.string),
onValuesChange: PropTypes.func.isRequired,
displayLoadingIndicator: PropTypes.bool,
ListPreviewElement: PropTypes.any.isRequired,

// API with MultiSelectBox
Expand Down Expand Up @@ -59,9 +60,14 @@ export default class MultiSelectBox_ListPreviewSortable extends PureComponent {
render() {
const {
options,
optionValueAccessor
optionValueAccessor,
displayLoadingIndicator
} = this.props;

if (displayLoadingIndicator) {
return '';
}

const {draggableValues} = this.state;

// Sorted options by draggable value ordering
Expand Down

0 comments on commit 02c4fe9

Please sign in to comment.