From 65c72068285671e823c6952eb55065f9bbff0026 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Mon, 15 Feb 2016 08:49:20 +0900
Subject: [PATCH] Issue #994360 by DuaelFr, andypost, emosbaugh: #states cannot
 disable/enable radios and checkboxes

---
 core/misc/states.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/misc/states.js b/core/misc/states.js
index 30c938ff00f8..d795e0a4a92b 100644
--- a/core/misc/states.js
+++ b/core/misc/states.js
@@ -628,7 +628,7 @@
 
   $(document).on('state:checked', function (e) {
     if (e.trigger) {
-      $(e.target).prop('checked', e.value);
+      $(':input', e.target).prop('checked', e.value);
     }
   });
 
-- 
GitLab