From e21e9b9d9fa964dae46df0fa57e264f72bfc98bc Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 17 Apr 2018 18:48:06 +0200 Subject: [PATCH] Trigger change event when using keyboard shortcut on custom checkbox --- customize.dist/pages.js | 1 + customize.dist/src/less2/include/sidebar-layout.less | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/customize.dist/pages.js b/customize.dist/pages.js index d2de214a4..10a3060fa 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -666,6 +666,7 @@ define([ e.stopPropagation(); e.preventDefault(); $(input).prop('checked', !$(input).is(':checked')); + $(input).change(); } }); diff --git a/customize.dist/src/less2/include/sidebar-layout.less b/customize.dist/src/less2/include/sidebar-layout.less index ede03942e..293b43c47 100644 --- a/customize.dist/src/less2/include/sidebar-layout.less +++ b/customize.dist/src/less2/include/sidebar-layout.less @@ -52,6 +52,16 @@ margin-bottom: 0; } } + label.noTitle { + display: inline-flex; + vertical-align: top; + & ~ .fa { + line-height: 24px; + height: 24px; + vertical-align: top; + margin-left: 10px; + } + } margin-bottom: 20px; } [type="text"], button {