ui-kit-ck-consultant 0.5.305 → 0.5.307

Sign up to get free protection for your applications and to get access to all the features.
@@ -707,7 +707,7 @@ var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
707
707
  };
708
708
 
709
709
  _this.detectClickOutside = function (event) {
710
- if (!_this.containerRef.current.contains(event.target)) {
710
+ if (_this.refComponent && _this.refComponent.current && !_this.containerRef.current.contains(event.target)) {
711
711
  _this.setState({
712
712
  isDisplay: false
713
713
  });
@@ -4379,6 +4379,10 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4379
4379
  var step = _this.props.step ? _this.props.step : 1;
4380
4380
  var position = Math.round(positionX * 100 / width) - Math.round(positionX * 100 / width) % step;
4381
4381
 
4382
+ if (Math.round(positionX * 100 / width) % step > step / 2) {
4383
+ position += step;
4384
+ }
4385
+
4382
4386
  if (position > 100) {
4383
4387
  position = 100;
4384
4388
  } else if (position < 0) {