Fix color picker so that a POST request is not done by default every time it opens

This commit is contained in:
Sean King
2020-08-02 16:17:34 -06:00
parent ad5b981d24
commit e95366b572
2 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ export class ColorWithPicker extends ImmutablePureComponent {
return (
<div className='label_input__color'>
<label>{label}</label>
<button id={buttonId} className='color-swatch' style={{ background: value }} value={value} onClick={this.onToggle} />
<div id={buttonId} className='color-swatch' style={{ background: value }} value={value} onClick={this.onToggle} />
<Overlay show={active} placement={placement} target={this}>
<ColorPicker value={value} onChange={onChange} onClose={this.onHidePicker} />
</Overlay>