ui: minor style changes in AdvancedMultiSelect

This commit is contained in:
Mike Salvatore 2021-03-05 12:32:57 -05:00
parent 793bb99309
commit 5e21ff88cb
1 changed files with 6 additions and 5 deletions

View File

@ -43,7 +43,7 @@ class AdvancedMultiSelect extends React.Component {
infoPaneParams: getDefaultPaneParams( infoPaneParams: getDefaultPaneParams(
this.infoPaneRefString, this.infoPaneRefString,
this.registry, this.registry,
this.isUnsafeOptionSelected(this.props.value) this.isUnsafeOptionSelected(props.value)
) )
}; };
} }
@ -164,11 +164,12 @@ class AdvancedMultiSelect extends React.Component {
render() { render() {
const { const {
schema, autofocus,
id, id,
required,
multiple, multiple,
autofocus required,
schema,
value
} = this.props; } = this.props;
return ( return (
@ -181,7 +182,7 @@ class AdvancedMultiSelect extends React.Component {
<ChildCheckboxContainer id={id} multiple={multiple} required={required} <ChildCheckboxContainer id={id} multiple={multiple} required={required}
autoFocus={autofocus} isSafe={this.isSafe} autoFocus={autofocus} isSafe={this.isSafe}
onPaneClick={this.setPaneInfo} onCheckboxClick={this.onChildCheckboxClick} onPaneClick={this.setPaneInfo} onCheckboxClick={this.onChildCheckboxClick}
selectedValues={this.props.value} enumOptions={this.enumOptions}/> selectedValues={value} enumOptions={this.enumOptions}/>
<InfoPane title={this.state.infoPaneParams.title} <InfoPane title={this.state.infoPaneParams.title}
body={this.state.infoPaneParams.content} body={this.state.infoPaneParams.content}