From 5ec8811427cc67dc0e9d966b833b563fb2582fb1 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Tue, 13 Aug 2019 17:42:58 -0400 Subject: [PATCH] formik-radio-button can pass custom input ref up --- src/components/formik-forms/formik-radio-button.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/formik-forms/formik-radio-button.jsx b/src/components/formik-forms/formik-radio-button.jsx index 31e4238bd..20858567c 100644 --- a/src/components/formik-forms/formik-radio-button.jsx +++ b/src/components/formik-forms/formik-radio-button.jsx @@ -72,6 +72,7 @@ const FormikRadioButton = ({ label, name, onSetCustom, + onSetCustomRef, value, ...props }) => ( @@ -89,6 +90,7 @@ const FormikRadioButton = ({ onSetCustom(event.target.value)} @@ -106,6 +108,7 @@ FormikRadioButton.propTypes = { label: PropTypes.string, name: PropTypes.string, onSetCustom: PropTypes.func, + onSetCustomRef: PropTypes.func, value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]) };