Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-slider

Package Overview
Dependencies
Maintainers
3
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-slider - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

4

lib/Handle.js

@@ -58,2 +58,3 @@ 'use strict';

var tipTransitionName = props.tipTransitionName;
var tipFormatter = props.tipFormatter;
var offset = props.offset;

@@ -84,3 +85,3 @@ var value = props.value;

null,
value
tipFormatter ? tipFormatter(value) : value
),

@@ -103,2 +104,3 @@ delay: 0,

tipTransitionName: _react2['default'].PropTypes.string,
tipFormatter: _react2['default'].PropTypes.func,
value: _react2['default'].PropTypes.number,

@@ -105,0 +107,0 @@ dragging: _react2['default'].PropTypes.bool,

@@ -407,2 +407,3 @@ 'use strict';

var tipTransitionName = props.tipTransitionName;
var tipFormatter = props.tipFormatter;
var children = props.children;

@@ -424,4 +425,4 @@

var handleClassName = prefixCls + '-handle';
var isNoTip = marksLen > 0;
var upper = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip,
var isNoTip = marksLen > 0 && !tipFormatter;
var upper = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip, tipFormatter: tipFormatter,
offset: upperOffset, value: upperBound, dragging: handle === 'upperBound' });

@@ -431,3 +432,3 @@

if (range) {
lower = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip,
lower = _react2['default'].createElement(_Handle2['default'], { className: handleClassName, tipTransitionName: tipTransitionName, noTip: isNoTip, tipFormatter: tipFormatter,
offset: lowerOffset, value: lowerBound, dragging: handle === 'lowerBound' });

@@ -491,2 +492,3 @@ }

tipTransitionName: _react2['default'].PropTypes.string,
tipFormatter: _react2['default'].PropTypes.func,
dots: _react2['default'].PropTypes.bool,

@@ -493,0 +495,0 @@ range: _react2['default'].PropTypes.bool

{
"name": "rc-slider",
"version": "2.2.0",
"version": "2.2.1",
"description": "slider ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -152,2 +152,8 @@ # rc-slider

<tr>
<td>tipFormatter</td>
<td>func</td>
<td></td>
<td>Format the value of the tooltip if it shows.</td>
</tr>
<tr>
<td>dots</td>

@@ -154,0 +160,0 @@ <td>bool</td>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc