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.
package/dist/index.js CHANGED
@@ -710,7 +710,7 @@ var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
710
710
  };
711
711
 
712
712
  _this.detectClickOutside = function (event) {
713
- if (!_this.containerRef.current.contains(event.target)) {
713
+ if (_this.refComponent && _this.refComponent.current && !_this.containerRef.current.contains(event.target)) {
714
714
  _this.setState({
715
715
  isDisplay: false
716
716
  });
@@ -4382,6 +4382,10 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4382
4382
  var step = _this.props.step ? _this.props.step : 1;
4383
4383
  var position = Math.round(positionX * 100 / width) - Math.round(positionX * 100 / width) % step;
4384
4384
 
4385
+ if (Math.round(positionX * 100 / width) % step > step / 2) {
4386
+ position += step;
4387
+ }
4388
+
4385
4389
  if (position > 100) {
4386
4390
  position = 100;
4387
4391
  } else if (position < 0) {