Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] Fixed color picker closure when selecting first custom palette value) (#1347)
Shan He027985afac6e
diff --git a/src/components/side-panel/layer-panel/color-selector.js b/src/components/side-panel/layer-panel/color-selector.jsindex 0fecf48bd..83d416dcb 100644--- a/src/components/side-panel/layer-panel/color-selector.js+++ b/src/components/side-panel/layer-panel/color-selector.js@@ -91,7 +91,7 @@ class ColorSelector extends Component {node = createRef();handleClickOutside = e => {- if (this.props.colorUI && this.props.colorUI.showSketcher) {+ if (this.props.colorUI && Number.isInteger(this.props.colorUI.showSketcher)) {// if sketcher is open, let sketch to close itself firstreturn;}diff --git a/src/components/side-panel/layer-panel/custom-palette.js b/src/components/side-panel/layer-panel/custom-palette.jsindex c326f888f..01323ed1e 100644--- a/src/components/side-panel/layer-panel/custom-palette.js+++ b/src/components/side-panel/layer-panel/custom-palette.js@@ -248,7 +248,7 @@ class CustomPalette extends Component {e.stopPropagation();}}onChange={e => this._inputColorHex(index, e)}- id="input-layer-label"+ id={`input-layer-label-${index}`}/></StyledInlineInput><StyledTrash onClick={() => this._onColorDelete(index)}>