From 2f09574e539f7a222d92d7caf5279be69d07ae39 Mon Sep 17 00:00:00 2001 From: Gazder Bence Date: Mon, 2 Aug 2021 23:17:21 +0200 Subject: [PATCH] Add multiple radio buttons warning to docs --- docs/guide/inputs/types/box/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/guide/inputs/types/box/README.md b/docs/guide/inputs/types/box/README.md index 6ed79522..ea93f21d 100644 --- a/docs/guide/inputs/types/box/README.md +++ b/docs/guide/inputs/types/box/README.md @@ -96,6 +96,17 @@ The syntax for radio inputs is identical to checkboxes. + +:::warning Multiple radio buttons with the same name +Radio buttons with the same name are considered one group in a `
`. +If you are using radio inputs in repeatable blocks the name will be the same, +and users will notice, that the current block input will "steal" the selection from the other. + +Possible mitigations: + - append the current index to the name of the input + - wrap the input group to a `` tag where you supress the `submit` event and handle handle possible problems with embedded forms +::: + ## Styling box inputs Checkboxes and radio boxes are notoriously frustrating to style. To assist,