remove selection interaction from categorical value label (#847)

This commit is contained in:
Severiano Badajoz
2019-07-15 11:32:42 -07:00
committed by GitHub
parent 3833bada54
commit 9c05aa6766
+3 -1
View File
@@ -131,6 +131,7 @@ class CategoryValue extends React.Component {
justifyContent: "space-between" justifyContent: "space-between"
}} }}
> >
<div style={{ display: "flex" }}>
<label className="bp3-control bp3-checkbox" style={{ margin: 0 }}> <label className="bp3-control bp3-checkbox" style={{ margin: 0 }}>
<input <input
onChange={selected ? this.toggleOff : this.toggleOn} onChange={selected ? this.toggleOff : this.toggleOn}
@@ -144,6 +145,7 @@ class CategoryValue extends React.Component {
onMouseEnter={this.handleMouseExit} onMouseEnter={this.handleMouseExit}
onMouseLeave={this.handleMouseEnter} onMouseLeave={this.handleMouseEnter}
/> />
</label>
<span <span
data-testid={`categorical-value-${metadataField}-${displayString}`} data-testid={`categorical-value-${metadataField}-${displayString}`}
data-testclass="categorical-value" data-testclass="categorical-value"
@@ -151,7 +153,7 @@ class CategoryValue extends React.Component {
> >
{displayString} {displayString}
</span> </span>
</label> </div>
<span style={{ flexShrink: 0 }}> <span style={{ flexShrink: 0 }}>
{colorAccessor && !isColorBy ? ( {colorAccessor && !isColorBy ? (
<Occupancy category={category} {...this.props} /> <Occupancy category={category} {...this.props} />