File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -859,15 +859,28 @@ class InputSpinner extends Component {
859
859
*/
860
860
_getKeyboardType ( ) {
861
861
// Keyboard type
862
- let keyboardType = "numeric " ;
862
+ let keyboardType = "number-pad " ;
863
863
if ( this . isTypeDecimal ( ) ) {
864
864
keyboardType = "decimal-pad" ;
865
- } else {
866
- keyboardType = "number-pad" ;
867
865
}
868
866
return keyboardType ;
869
867
}
870
868
869
+ /**
870
+ * Get auto capitalize
871
+ * @returns {string }
872
+ * @private
873
+ */
874
+ _getAutoCapitalize ( ) {
875
+ let autoCapitalize = this . props . autoCapitalize
876
+ ? this . props . autoCapitalize
877
+ : "none" ;
878
+ if ( this . isTypeDecimal ( ) ) {
879
+ autoCapitalize = "words" ;
880
+ }
881
+ return autoCapitalize ;
882
+ }
883
+
871
884
/**
872
885
* Get main color
873
886
* @returns {String|* }
@@ -1309,6 +1322,7 @@ class InputSpinner extends Component {
1309
1322
returnKeyType = { this . props . returnKeyType }
1310
1323
returnKeyLabel = { this . props . returnKeyLabel }
1311
1324
autofocus = { this . props . autofocus }
1325
+ autoCapitalize = { this . _getAutoCapitalize ( ) } // Bug fix for Samsung Keyboard
1312
1326
editable = { this . isEditable ( ) }
1313
1327
maxLength = { this . props . maxLength }
1314
1328
onKeyPress = { this . onKeyPress . bind ( this ) }
You can’t perform that action at this time.
0 commit comments