From 84fb8168f079e935d5ddc8d29c26c2ca583f1d1f Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Fri, 14 Aug 2020 17:04:32 +0800 Subject: [PATCH] fix: radio focus blur not work --- components/radio/Radio.jsx | 2 ++ components/radio/RadioButton.jsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/radio/Radio.jsx b/components/radio/Radio.jsx index 2e4f2882e..56d46eaf8 100644 --- a/components/radio/Radio.jsx +++ b/components/radio/Radio.jsx @@ -22,6 +22,8 @@ export default { autofocus: Boolean, type: PropTypes.string.def('radio'), onChange: PropTypes.func, + onFocus: PropTypes.func, + onBlur: PropTypes.func, 'onUpdate:checked': PropTypes.func, 'onUpdate:value': PropTypes.func, }, diff --git a/components/radio/RadioButton.jsx b/components/radio/RadioButton.jsx index 91f4fbb0c..0fc883451 100644 --- a/components/radio/RadioButton.jsx +++ b/components/radio/RadioButton.jsx @@ -11,7 +11,7 @@ export default { setup() { return { configProvider: inject('configProvider', ConfigConsumerProps), - radioGroupContext: inject('radioGroupContext'), + radioGroupContext: inject('radioGroupContext', {}), }; }, render() {