Permalink
Browse files

Merge pull request #256 from ant-design/fix-stepper

remove stepper input disabled, and tweak readOnly.
  • Loading branch information...
foriacus committed Sep 14, 2016
2 parents b3e0068 + dc06242 commit 8325f6444970559e465d71df625e81cbe57c0b85
Showing with 1 addition and 5 deletions.
  1. +1 −5 components/stepper/index.web.tsx
@@ -8,14 +8,10 @@ export default class Stepper extends React.Component<StepProps, any> {
static defaultProps = {
prefixCls: 'am-stepper',
step: 1,
readOnly: true,
readOnly: false,
showNumber: false,
};

componentDidMount() {
(this.refs as any).inputNumber.refs.input.setAttribute('disabled', true);
}

render() {
const { prefixCls, className, showNumber } = this.props;
const stepperClass = classNames({

3 comments on commit 8325f64

@warmhug

This comment has been minimized.

Copy link
Contributor

warmhug replied Sep 14, 2016

package.json 里 rc-input-number 依赖版本号,也要改一下

@warmhug

This comment has been minimized.

Copy link
Contributor

warmhug replied Sep 14, 2016

还有 md 文档里对 readOnly 的介绍,也要改

@uxmatter

This comment has been minimized.

Copy link

uxmatter replied Sep 23, 2016

您好!是否能提供Sketch等设计素材

Please sign in to comment.