keep placeholder on multiselect (#11289)

This commit is contained in:
Elizabeth Thompson
2020-11-12 11:36:24 -08:00
committed by GitHub
parent 542d2e3b06
commit b277f19808
7 changed files with 386 additions and 52 deletions

View File

@@ -347,7 +347,11 @@ export default class MetricsControl extends React.PureComponent {
isLoading={this.props.isLoading}
isMulti={this.props.multi}
name={`select-${this.props.name}`}
placeholder={t('choose a column or aggregate function')}
placeholder={
this.props.multi
? t('choose one or more columns or aggregate functions')
: t('choose a column or aggregate function')
}
options={this.state.options}
value={this.state.value}
labelKey="label"