New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rmc-picker

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-picker - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

23

lib/Picker.js

@@ -67,2 +67,10 @@ 'use strict';

},
onCancel: function onCancel() {
this.setOpenState(false);
if (this.props.onCancel) {
this.props.onCancel({
event: 'cancel'
});
}
},
onOk: function onOk() {

@@ -76,15 +84,8 @@ this.setOpenState(false);

},
onCancel: function onCancel() {
this.setOpenState(false);
if (this.props.onCancel) {
this.props.onCancel({
event: 'cancel'
});
}
},
onSelect: function onSelect(selectNameValue, indexOfScrollers) {
var newVal = [].concat(_toConsumableArray(this.value));
newVal[indexOfScrollers] = selectNameValue.value;
if (this.props.onChange) {
this.props.onChange(newVal, { changedIndex: indexOfScrollers });
this.props.onChange(selectNameValue.value, {
indexOfScrollers: indexOfScrollers,
preValue: [].concat(_toConsumableArray(this.value))
});
}

@@ -91,0 +92,0 @@ },

@@ -70,3 +70,3 @@ 'use strict';

} else {
// refresh 和 scrollTo 等方法都会再次触发 scrollEnd,此处并不希望此行为
// refresh 和 scrollTo 等方法都会再次触发 scrollEnd
setTimeout(function () {

@@ -77,5 +77,2 @@ _this.iscroll.refresh();

}
// const y = this.iscroll.pages[0][this.defaultScrollPosition].y;
// console.log(y);
},

@@ -89,3 +86,2 @@ componentWillUnmount: function componentWillUnmount() {

// debugger
var index = undefined;

@@ -92,0 +88,0 @@ if (this.props.heightOfItem) {

{
"name": "rmc-picker",
"version": "0.2.1",
"version": "0.2.2",
"description": "m-picker ui component for react",

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

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