Fix quirk in data-display-dependency

This commit is contained in:
Raphael Michel
2018-08-11 10:48:48 +02:00
parent 0ce1c4565e
commit 85e9808550
2 changed files with 10 additions and 2 deletions

View File

@@ -216,7 +216,11 @@ var form_handlers = function (el) {
$toggling = dependent.closest('.form-group');
}
if (ev) {
$toggling.stop().slideToggle(enabled);
if (enabled) {
$toggling.stop().slideDown();
} else {
$toggling.stop().slideUp();
}
} else {
$toggling.stop().toggle(enabled);
}