authscape 1.0.640 → 1.0.644
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/components/ColorPicker.js +1 -1
package/index.js
CHANGED
|
@@ -645,7 +645,7 @@ function ColorPicker(_ref) {
|
|
|
645
645
|
style: styles.cover,
|
|
646
646
|
onClick: handleClose
|
|
647
647
|
}), /*#__PURE__*/_react["default"].createElement(_reactColor.SketchPicker, {
|
|
648
|
-
color: rgbColor,
|
|
648
|
+
color: rgbColor != null ? rgbColor : "#fff",
|
|
649
649
|
onChange: handleChange,
|
|
650
650
|
onChangeComplete: function onChangeComplete() {
|
|
651
651
|
setCompletedColor("rgba(".concat(rgbColor.r, ", ").concat(rgbColor.g, ", ").concat(rgbColor.b, ", ").concat(rgbColor.a, ")"));
|
package/package.json
CHANGED
|
@@ -79,7 +79,7 @@ export function ColorPicker({name, defaultColor, onColorChanged}) {
|
|
|
79
79
|
</div>
|
|
80
80
|
{ displayColorPicker ? <div style={ styles.popover }>
|
|
81
81
|
<div style={ styles.cover } onClick={ handleClose }/>
|
|
82
|
-
<SketchPicker color={ rgbColor } onChange={ handleChange } onChangeComplete={() => {
|
|
82
|
+
<SketchPicker color={ rgbColor != null ? rgbColor : "#fff" } onChange={ handleChange } onChangeComplete={() => {
|
|
83
83
|
setCompletedColor(`rgba(${ rgbColor.r }, ${ rgbColor.g }, ${ rgbColor.b }, ${ rgbColor.a })`);
|
|
84
84
|
}} />
|
|
85
85
|
</div> : null }
|