Commit dcc3bea5 authored by Justin Ho's avatar Justin Ho

Fix toggler_behavior to not update intial state

Add changelog
parent 79b964aa
......@@ -16,7 +16,7 @@ $(() => {
const $collapseIcon = $container.find('.js-sidebar-collapse');
const $expandIcon = $container.find('.js-sidebar-expand');
if (isExpanded) {
if (isExpanded && !toggleState) {
$container.data('is-expanded', false);
$collapseIcon.addClass('hidden');
$expandIcon.removeClass('hidden');
......
---
title: Replace fa-chevron-up with GitLab SVG icon
merge_request: 46118
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment