File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -167,20 +167,22 @@ class UnconnectedMarkerColor extends Component {
167
167
renderVariableControls ( ) {
168
168
const _ = this . context . localize ;
169
169
return (
170
- < Fragment >
170
+ < Field multiValued = { this . isMultiValued ( ) } >
171
171
< DataSelector
172
+ suppressMultiValuedMessage
172
173
attr = "marker.color"
173
174
placeholder = { _ ( 'Select a Data Option' ) }
174
175
/>
175
176
{ this . props . container . marker &&
176
177
this . props . container . marker . colorscale === MULTI_VALUED ? null : (
177
178
< Colorscale
179
+ suppressMultiValuedMessage
178
180
attr = "marker.colorscale"
179
181
updatePlot = { this . setColorScale }
180
182
colorscale = { this . state . colorscale }
181
183
/>
182
184
) }
183
- </ Fragment >
185
+ </ Field >
184
186
) ;
185
187
}
186
188
@@ -195,20 +197,22 @@ class UnconnectedMarkerColor extends Component {
195
197
196
198
return (
197
199
< Fragment >
198
- < Field { ...this . props } multiValued = { this . isMultiValued ( ) } attr = { attr } >
199
- < RadioBlocks
200
- options = { options }
201
- activeOption = { type }
202
- onOptionChange = { this . setType }
203
- />
200
+ < Field { ...this . props } attr = { attr } >
201
+ < Field multiValued = { this . isMultiValued ( ) && ! this . state . type } >
202
+ < RadioBlocks
203
+ options = { options }
204
+ activeOption = { type }
205
+ onOptionChange = { this . setType }
206
+ />
204
207
205
- { ! type ? null : (
206
- < Info >
207
- { type === 'constant'
208
- ? _ ( 'All points in a trace are colored in the same color.' )
209
- : _ ( 'Each point in a trace is colored according to data.' ) }
210
- </ Info >
211
- ) }
208
+ { ! type ? null : (
209
+ < Info >
210
+ { type === 'constant'
211
+ ? _ ( 'All points in a trace are colored in the same color.' )
212
+ : _ ( 'Each point in a trace is colored according to data.' ) }
213
+ </ Info >
214
+ ) }
215
+ </ Field >
212
216
213
217
{ ! type
214
218
? null
You can’t perform that action at this time.
0 commit comments