Skip to content

Commit 84fb816

Browse files
committed
fix: radio focus blur not work
1 parent db7826b commit 84fb816

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/radio/Radio.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export default {
2222
autofocus: Boolean,
2323
type: PropTypes.string.def('radio'),
2424
onChange: PropTypes.func,
25+
onFocus: PropTypes.func,
26+
onBlur: PropTypes.func,
2527
'onUpdate:checked': PropTypes.func,
2628
'onUpdate:value': PropTypes.func,
2729
},

components/radio/RadioButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
setup() {
1212
return {
1313
configProvider: inject('configProvider', ConfigConsumerProps),
14-
radioGroupContext: inject('radioGroupContext'),
14+
radioGroupContext: inject('radioGroupContext', {}),
1515
};
1616
},
1717
render() {

0 commit comments

Comments
 (0)