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

preload
Sean King 2020-08-02 16:17:34 -06:00
rodzic ad5b981d24
commit e95366b572
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -380,7 +380,8 @@ code {
button,
.button,
.block-button {
.block-button,
.color-swatch {
display: block;
width: 100%;
border: 0;
@ -453,7 +454,6 @@ code {
width: 32px;
height: 16px;
margin-left: 12px;
display: inline-block;
}
}