@@ -110,9 +110,11 @@ export default function SetQualityProfileModal(props: SetQualityProfileModalProp | |||
className="display-flex-start" | |||
checked={!hasSelectedSysDefault} | |||
disabled={submitting} | |||
onCheck={() => | |||
setSelected(!hasSelectedSysDefault ? selected : currentProfile.key) | |||
} | |||
onCheck={value => { | |||
if (hasSelectedSysDefault) { | |||
setSelected(value); | |||
} | |||
}} | |||
value={currentProfile.key}> | |||
<div className="spacer-left"> | |||
<div className="little-spacer-bottom"> |
@@ -49,8 +49,12 @@ it('should correctly handle changes', () => { | |||
.at(1) | |||
.props() | |||
.onCheck(''); | |||
diveIntoSimpleModal(wrapper) | |||
.find(Select) | |||
.props() | |||
.onChange({ value: 'bar' }); | |||
submitSimpleModal(wrapper); | |||
expect(onSubmit).toHaveBeenLastCalledWith('foo', 'foo'); | |||
expect(onSubmit).toHaveBeenLastCalledWith('bar', 'foo'); | |||
const change = diveIntoSimpleModal(wrapper) | |||
.find(Select) |