@gpa-gemstone/react-forms 1.1.51 → 1.1.52

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.
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ColorResult } from 'react-color';
3
3
  interface IProps {
4
- Show: boolean;
5
4
  CurrentColor: string;
6
5
  Colors: string[];
7
6
  OnColorChange: (updatedColor: ColorResult) => void;
@@ -40,9 +40,8 @@ var ColorPicker = function (props) {
40
40
  var _d = React.useState(0), targetTop = _d[0], setTargetTop = _d[1];
41
41
  var _e = React.useState(0), targetWidth = _e[0], setTargetWidth = _e[1];
42
42
  var _f = React.useState(0), targetHeight = _f[0], setTargetHeight = _f[1];
43
- var _g = React.useState(props.Show), show = _g[0], setShow = _g[1];
43
+ var _g = React.useState(false), show = _g[0], setShow = _g[1];
44
44
  React.useEffect(function () {
45
- setShow(props.Show);
46
45
  var target = document.querySelectorAll("[data-tooltip" + "=\"color-picker\"" + "]");
47
46
  if (target.length === 0) {
48
47
  setTargetHeight(0);
@@ -57,7 +56,7 @@ var ColorPicker = function (props) {
57
56
  setTargetLeft(targetLocation.left);
58
57
  setTargetTop(targetLocation.top);
59
58
  }
60
- }, [props.Show]);
59
+ }, []);
61
60
  React.useLayoutEffect(function () {
62
61
  var _a = UpdatePosition(), t = _a[0], l = _a[1];
63
62
  setTop(t);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-forms",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "description": "React Form modules for gpa webapps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",