Skip to content

Commit c59cf67

Browse files
committed
Cleanup
1 parent 18677bb commit c59cf67

File tree

7 files changed

+24
-7
lines changed

7 files changed

+24
-7
lines changed

src/components/fields/Dropdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class UnconnectedDropdown extends Component {
1212
}
1313

1414
return (
15-
<Field {...this.props}>
15+
<Field {...this.props} noDefaultIndicator={this.props.noDefaultIndicator}>
1616
<DropdownWidget
1717
backgroundDark={this.props.backgroundDark}
1818
options={this.props.options}

src/components/fields/LocationSelector.js

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class UnconnectedLocationSelector extends Component {
102102
fullValue={mode}
103103
updatePlot={this.setMode}
104104
attr={this.props.attr}
105+
noDefaultIndicator
105106
/>
106107
</Field>
107108
{mode === 'latlon' ? (

src/components/fields/MarkerColor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,15 @@ class UnconnectedMarkerColor extends Component {
127127
this.props.container.marker.colorsrc === MULTI_VALUED));
128128
return (
129129
<Field multiValued={multiValued} noDefaultIndicator>
130-
<DataSelector suppressMultiValuedMessage attr="marker.color" />
130+
<DataSelector suppressMultiValuedMessage attr="marker.color" noDefaultIndicator />
131131
{this.props.container.marker &&
132132
this.props.container.marker.colorscale === MULTI_VALUED ? null : (
133133
<ColorscalePicker
134134
suppressMultiValuedMessage
135135
attr="marker.colorscale"
136136
updatePlot={this.setColorScale}
137137
colorscale={this.state.colorscale}
138+
noDefaultIndicator
138139
/>
139140
)}
140141
</Field>

src/components/fields/MarkerSize.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ class UnconnectedMarkerSize extends Component {
8080
noDefaultIndicator
8181
/>
8282
) : multiValued ? null : (
83-
<DataSelector suppressMultiValuedMessage attr="marker.size" updatePlot={this.setValue} />
83+
<DataSelector
84+
suppressMultiValuedMessage
85+
attr="marker.size"
86+
updatePlot={this.setValue}
87+
noDefaultIndicator
88+
/>
8489
)}
8590
</Field>
8691
);

src/components/fields/Radio.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {connectToContainer} from 'lib';
77
export class UnconnectedRadio extends Component {
88
render() {
99
return (
10-
<Field {...this.props}>
10+
<Field {...this.props} noDefaultIndicator={this.props.noDefaultIndicator}>
1111
<RadioBlocks
1212
options={this.props.options}
1313
activeOption={this.props.fullValue}

src/components/fields/TextPosition.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ export class UnconnectedTextPosition extends Component {
2424
const control =
2525
this.state.posType === 'simple' ? (
2626
<>
27-
<Info>
27+
<Info noDefaultIndicator>
2828
{_(
2929
'This will position all text values on the plot according to the selected position.'
3030
)}
3131
</Info>
32-
<Dropdown options={this.props.options} attr="textposition" clearable={false} />
32+
<Dropdown
33+
options={this.props.options}
34+
attr="textposition"
35+
clearable={false}
36+
noDefaultIndicator
37+
/>
3338
</>
3439
) : (
3540
<>

src/components/fields/UpdateMenuButtons.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class UpdateMenuButtons extends Component {
2525
updatePlot={index => this.setState({currentButtonIndex: index})}
2626
clearable={false}
2727
fullValue={this.state.currentButtonIndex}
28+
noDefaultIndicator
2829
/>
2930
);
3031
}
@@ -33,7 +34,11 @@ class UpdateMenuButtons extends Component {
3334
return (
3435
<Field>
3536
{this.renderDropdown()}
36-
<TextEditor attr={`buttons[${this.state.currentButtonIndex}].label`} richTextOnly />
37+
<TextEditor
38+
attr={`buttons[${this.state.currentButtonIndex}].label`}
39+
richTextOnly
40+
noDefaultIndicator
41+
/>
3742
</Field>
3843
);
3944
}

0 commit comments

Comments
 (0)