From d60aabea77e2735a85bf42c44207e8355335ce11 Mon Sep 17 00:00:00 2001 From: Holger Ludvigsen Date: Tue, 28 May 2019 12:41:17 +0200 Subject: [PATCH] Update documentation of `Events.onCheck` `Events.onCheck` also works perfectly for detecting checks on radio buttons. This should be mentioned in the documentation. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio#checked --- src/Html/Events.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Html/Events.elm b/src/Html/Events.elm index 053c792..4cb9c4e 100644 --- a/src/Html/Events.elm +++ b/src/Html/Events.elm @@ -123,7 +123,7 @@ alwaysStop x = {-| Detect [change](https://developer.mozilla.org/en-US/docs/Web/Events/change) -events on checkboxes. It will grab the boolean value from `event.target.checked` +events on checkboxes and radio buttons. It will grab the boolean value from `event.target.checked` on any input event. Check out [`targetChecked`](#targetChecked) for more details on how this works.