From 974ae6fd3889feb287e8beaf008d3de08e6c3e3c Mon Sep 17 00:00:00 2001 From: John Duprey Date: Thu, 9 May 2024 14:08:03 -0400 Subject: [PATCH] fix form click issues --- src/components/forms/RFFComponents.jsx | 51 +++++++++++++++++++++++++- src/components/forms/index.js | 2 + 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/src/components/forms/RFFComponents.jsx b/src/components/forms/RFFComponents.jsx index b3f22f8cda14..737333c7dfc9 100644 --- a/src/components/forms/RFFComponents.jsx +++ b/src/components/forms/RFFComponents.jsx @@ -123,7 +123,9 @@ export const RFFCFormSwitch = ({ >
(
{ + return ( + <> +
+ {options?.map((option, key) => { + return ( + + {({ input }) => { + return ( + <> + + + ) + }} + + ) + })} +
+ + ) +} + +RFFCFormRadioList.propTypes = { + ...sharedPropTypes, + inline: PropTypes.bool, +} + export const RFFCFormTextarea = ({ name, label, diff --git a/src/components/forms/index.js b/src/components/forms/index.js index 616687f88a0f..00a76ee4554a 100644 --- a/src/components/forms/index.js +++ b/src/components/forms/index.js @@ -5,6 +5,7 @@ import { RFFCFormSwitch, RFFCFormInput, RFFCFormRadio, + RFFCFormRadioList, RFFCFormTextarea, RFFCFormSelect, RFFSelectSearch, @@ -18,6 +19,7 @@ export { RFFCFormSwitch, RFFCFormInput, RFFCFormRadio, + RFFCFormRadioList, RFFCFormTextarea, RFFCFormSelect, RFFSelectSearch,