* Sets the value of a radio button when checked. * * @param node - A @formkit/core#FormKitNode | FormKitNode. * @param event - Event * * @public
(node: FormKitNode, event: Event)
| 11 | * @public |
| 12 | */ |
| 13 | function toggleChecked(node: FormKitNode, event: Event) { |
| 14 | if (event.target instanceof HTMLInputElement) { |
| 15 | node.input(optionValue(node.props.options, event.target.value)) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Checks if the value being checked is the current value. |
nothing calls this directly
no test coverage detected