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

nuke-button

Package Overview
Dependencies
Maintainers
4
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-button - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

4

HISTORY.md
# Changelog
## 2.0.6 / 2018-06-01
* [[100c0d9](http://gitlab.alibaba-inc.com/nuke/button/commit/100c0d91086280843f3d9f4f7a2287cc8fa84af3)] - `fix` fix disabled button issue
## 2.0.5 / 2018-05-22

@@ -5,0 +9,0 @@

4

lib/view/button.js

@@ -48,3 +48,3 @@ /** @jsx createElement */

var ActiveAttr = ['color', 'backgroundColor', 'borderColor'];
var LoadingPic = '//img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar';
var LoadingPic = 'https://img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar';

@@ -67,2 +67,3 @@ var Button = function (_Component) {

value: function onPress(e) {
if (this.props.disabled) return;
this.props.onPress(e);

@@ -73,2 +74,3 @@ }

value: function onTextPress(e) {
if (this.props.disabled) return;
// stopTextPropagation in web

@@ -75,0 +77,0 @@ if (_nukeEnv.isWeb) {

{
"name": "nuke-button",
"version": "2.0.5",
"version": "2.0.6",
"description": "按钮",

@@ -68,5 +68,5 @@ "main": "lib/index",

"publishConfig": {
"registry": "http://registry.npmjs.org"
"registry": "https://registry.npmjs.org"
},
"license": "Apache"
}

@@ -23,3 +23,3 @@ /** @jsx createElement */

const LoadingPic =
'//img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar';
'https://img.alicdn.com/tfs/TB179d4LpXXXXaUXVXXXXXXXXXX-32-32.gif?getAvatar=avatar';

@@ -33,5 +33,7 @@ class Button extends Component {

onPress(e) {
if (this.props.disabled) return;
this.props.onPress(e);
}
onTextPress(e) {
if (this.props.disabled) return;
// stopTextPropagation in web

@@ -38,0 +40,0 @@ if (isWeb) {

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