Fix color picker so that a POST request is not done by default every time it opens
This commit is contained in:
parent
ad5b981d24
commit
e95366b572
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue