@@ -55,7 +55,7 @@ const inputNumberProps = {
55
55
disabled : PropTypes . bool ,
56
56
// onFocus: PropTypes.func,
57
57
// onBlur: PropTypes.func,
58
- readOnly : PropTypes . bool ,
58
+ readonly : PropTypes . bool ,
59
59
max : PropTypes . number ,
60
60
min : PropTypes . number ,
61
61
step : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) ,
@@ -637,7 +637,7 @@ export default {
637
637
const {
638
638
prefixCls,
639
639
disabled,
640
- readOnly ,
640
+ readonly ,
641
641
useTouch,
642
642
autoComplete,
643
643
upHandler,
@@ -666,7 +666,7 @@ export default {
666
666
}
667
667
}
668
668
669
- const editable = ! this . readOnly && ! this . disabled ;
669
+ const editable = ! this . readonly && ! this . disabled ;
670
670
671
671
// focus state, show input value
672
672
// unfocus state, show valid value
@@ -695,8 +695,8 @@ export default {
695
695
mouseleave : this . stop ,
696
696
} ;
697
697
}
698
- const isUpDisabled = ! ! upDisabledClass || disabled || readOnly ;
699
- const isDownDisabled = ! ! downDisabledClass || disabled || readOnly ;
698
+ const isUpDisabled = ! ! upDisabledClass || disabled || readonly ;
699
+ const isDownDisabled = ! ! downDisabledClass || disabled || readonly ;
700
700
const {
701
701
mouseenter = noop ,
702
702
mouseleave = noop ,
@@ -778,7 +778,7 @@ export default {
778
778
onBlur = { this . onBlur }
779
779
onKeydown = { editable ? this . onKeyDown : noop }
780
780
onKeyup = { editable ? this . onKeyUp : noop }
781
- readOnly = { this . readOnly }
781
+ readonly = { this . readonly }
782
782
disabled = { this . disabled }
783
783
max = { this . max }
784
784
min = { this . min }
0 commit comments