diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-16 18:49:18 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-16 18:49:18 +0300 |
commit | a290c92bb94f42a4bf267f11f6dee94691cc1d66 (patch) | |
tree | bef1de0587465c90803ac6ef7b94d3ddc9f29a55 | |
parent | 6d0e5ed53fb6262225c42fdd0994c1302b1b7391 (diff) |
Fix toggle for toggler_behavior
-rw-r--r-- | app/assets/javascripts/behaviors/toggler_behavior.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/behaviors/toggler_behavior.js b/app/assets/javascripts/behaviors/toggler_behavior.js index af7dee59214..4446be0e52f 100644 --- a/app/assets/javascripts/behaviors/toggler_behavior.js +++ b/app/assets/javascripts/behaviors/toggler_behavior.js @@ -20,7 +20,7 @@ $(() => { $container .find('.js-toggle-content') - .toggleClass('hidden', toggleState); + .toggle(toggleState); } $('body').on('click', '.js-toggle-button', function toggleButton(e) { |