ui-kit-ck-consultant 0.5.267 → 0.5.268

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.
@@ -4400,9 +4400,11 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4400
4400
  _this = _React$Component.call(this, props) || this;
4401
4401
 
4402
4402
  _this.eventMouseUp = function () {
4403
- _this.setState({
4404
- isActive: false
4405
- });
4403
+ if (_this.state.isDisplay) {
4404
+ _this.setState({
4405
+ isActive: false
4406
+ });
4407
+ }
4406
4408
  };
4407
4409
 
4408
4410
  _this.onMouse = function (e, isForce) {
@@ -4426,6 +4428,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4426
4428
  };
4427
4429
 
4428
4430
  _this.state = {
4431
+ isDisplay: true,
4429
4432
  isActive: false,
4430
4433
  position: 0
4431
4434
  };
@@ -4435,6 +4438,10 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4435
4438
  var _proto = Gauge.prototype;
4436
4439
 
4437
4440
  _proto.componentDidMount = function componentDidMount() {
4441
+ this.setState({
4442
+ isDisplay: true
4443
+ });
4444
+
4438
4445
  if (this.props.position) {
4439
4446
  this.setState({
4440
4447
  position: this.props.position
@@ -4445,7 +4452,13 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4445
4452
  };
4446
4453
 
4447
4454
  _proto.componentWillUnmount = function componentWillUnmount() {
4448
- window.removeEventListener('mouseup', this.eventMouseUp);
4455
+ var _this2 = this;
4456
+
4457
+ this.setState({
4458
+ isDisplay: false
4459
+ }, function () {
4460
+ window.removeEventListener('mouseup', _this2.eventMouseUp);
4461
+ });
4449
4462
  };
4450
4463
 
4451
4464
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
@@ -4457,7 +4470,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4457
4470
  };
4458
4471
 
4459
4472
  _proto.render = function render() {
4460
- var _this2 = this;
4473
+ var _this3 = this;
4461
4474
 
4462
4475
  return /*#__PURE__*/React.createElement("div", {
4463
4476
  className: this.props.className
@@ -4489,15 +4502,15 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4489
4502
  borderRadius: '8px'
4490
4503
  },
4491
4504
  onMouseMove: function onMouseMove(e) {
4492
- return _this2.onMouse(e);
4505
+ return _this3.onMouse(e);
4493
4506
  },
4494
4507
  onClick: function onClick(e) {
4495
- return _this2.onMouse(e, true);
4508
+ return _this3.onMouse(e, true);
4496
4509
  },
4497
4510
  onMouseDown: function onMouseDown(e) {
4498
4511
  e.preventDefault();
4499
4512
 
4500
- _this2.setState({
4513
+ _this3.setState({
4501
4514
  isActive: true
4502
4515
  });
4503
4516
  }