diff --git a/src/Value.js b/src/Value.js index 1bb82c463a..6d2556ea12 100644 --- a/src/Value.js +++ b/src/Value.js @@ -46,7 +46,7 @@ const Value = React.createClass({ renderLabel () { let className = 'Select-value-label'; return this.props.onClick || this.props.value.href ? ( - + {this.props.children} ) : ( diff --git a/test/Value-test.js b/test/Value-test.js index a5d31a69b5..9b02308a67 100644 --- a/test/Value-test.js +++ b/test/Value-test.js @@ -32,12 +32,12 @@ describe('Value component', function() { value: OPTION, onRemove: sinon.spy() }; - value = TestUtils.renderIntoDocument(); + value = TestUtils.renderIntoDocument({OPTION.label}); }); it('requests its own removal when the remove icon is clicked', function() { var selectItemIcon = TestUtils.findRenderedDOMComponentWithClass(value, 'Select-value-icon'); - TestUtils.Simulate.click(selectItemIcon); + TestUtils.Simulate.mouseDown(selectItemIcon); expect(props.onRemove, 'was called'); }); @@ -47,12 +47,6 @@ describe('Value component', function() { expect(props.onRemove, 'was called'); }); - it('prevents event propagation, pt 1', function() { - var mockEvent = { stopPropagation: sinon.spy() }; - value.blockEvent(mockEvent); - expect(mockEvent.stopPropagation, 'was called'); - }); - describe('without a custom click handler', function() { it('presents the given label', function() {