From 43c53f1d8d605b0fa15f4ae81c51caff3955ab1c Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 30 Jul 2015 11:15:03 +0800 Subject: [PATCH] loading button should be unhandlable --- components/button/demo/loading.md | 3 --- style/components/button.less | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/button/demo/loading.md b/components/button/demo/loading.md index a818b92e8a..9f5a314be0 100644 --- a/components/button/demo/loading.md +++ b/components/button/demo/loading.md @@ -21,9 +21,6 @@ var App = React.createClass({ render() { var loadingClass = this.state.loading ? 'ant-btn-loading' : ''; return
- diff --git a/style/components/button.less b/style/components/button.less index c51664f374..cd358e7550 100644 --- a/style/components/button.less +++ b/style/components/button.less @@ -44,6 +44,8 @@ &-loading { padding-right: 31px; + pointer-events: none; + opacity: 0.75; &:after { font-family: anticon; .animation(loadingCircle 1s infinite linear);