File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export default {
83
83
initialValue = defaultValue || [ ]
84
84
}
85
85
// warning(!('filedNames' in props),
86
- // '`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` intead .');
86
+ // '`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead .');
87
87
88
88
return {
89
89
sPopupVisible : popupVisible ,
@@ -242,6 +242,7 @@ export default {
242
242
return
243
243
}
244
244
if ( e . keyCode === KeyCode . DOWN || e . keyCode === KeyCode . UP ) {
245
+ e . preventDefault ( )
245
246
let nextIndex = currentIndex
246
247
if ( nextIndex !== - 1 ) {
247
248
if ( e . keyCode === KeyCode . DOWN ) {
@@ -256,8 +257,10 @@ export default {
256
257
}
257
258
activeValue [ currentLevel ] = currentOptions [ nextIndex ] [ this . getFieldName ( 'value' ) ]
258
259
} else if ( e . keyCode === KeyCode . LEFT || e . keyCode === KeyCode . BACKSPACE ) {
260
+ e . preventDefault ( )
259
261
activeValue . splice ( activeValue . length - 1 , 1 )
260
262
} else if ( e . keyCode === KeyCode . RIGHT ) {
263
+ e . preventDefault ( )
261
264
if ( currentOptions [ currentIndex ] &&
262
265
currentOptions [ currentIndex ] [ this . getFieldName ( 'children' ) ] ) {
263
266
activeValue . push ( currentOptions [ currentIndex ] [ this . getFieldName ( 'children' ) ] [ 0 ] [ this . getFieldName ( 'value' ) ] )
Original file line number Diff line number Diff line change 1
- // based on rc-cascader 0.16.0
1
+ // based on rc-cascader 0.16.2
2
2
import Cascader from './Cascader'
3
3
export default Cascader
Original file line number Diff line number Diff line change 1
- // based on rc-checkbox 2.1.5
1
+ // based on rc-checkbox 2.1.6
2
2
export { default } from './src/'
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default {
20
20
// onBlur: PropTypes.func,
21
21
// onChange: PropTypes.func,
22
22
// onClick: PropTypes.func,
23
- tabIndex : PropTypes . string ,
23
+ tabIndex : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
24
24
readOnly : PropTypes . bool ,
25
25
autoFocus : PropTypes . bool ,
26
26
value : PropTypes . any ,
Original file line number Diff line number Diff line change 1
- // based on rc-collapse 1.10.0
1
+ // based on rc-collapse 1.10.2
2
2
import CollapsePanel from './src/Panel'
3
3
import Collapse from './src/Collapse'
4
4
import { collapseProps , panelProps } from './src/commonProps'
You can’t perform that action at this time.
0 commit comments