From f64d11421ffff9203eedb7bc3b6d6a373f31938d Mon Sep 17 00:00:00 2001 From: "Keith C. Ivey" Date: Tue, 14 Nov 2017 13:27:27 -0500 Subject: [PATCH] fix initializing checkbox on mouseover (#2007) If there is markup in the label, the target for the event can be a child of the label tag rather than the label tag itself. --- js/checkbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/checkbox.js b/js/checkbox.js index 00ce6e17d..87653e632 100644 --- a/js/checkbox.js +++ b/js/checkbox.js @@ -204,7 +204,7 @@ // DATA-API $(document).on('mouseover.fu.checkbox.data-api', '[data-initialize=checkbox]', function initializeCheckboxes (e) { - var $control = $(e.target); + var $control = $(this); if (!$control.data('fu.checkbox')) { $control.checkbox($control.data()); }