Skip to content

Commit f77a8f7

Browse files
author
Viktor Sevch
committed
MC-35071: Unexpected behavior when closing tab in admin panel
1 parent 6c990b0 commit f77a8f7

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Config/Block/System/Config/Form

1 file changed

+1
-0
lines changed

app/code/Magento/Config/Block/System/Config/Form/Fieldset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ protected function _getHeaderTitleHtml($element)
175175
'-link">' . $element->getLegend() . '</a>' .
176176
/* @noEscape */ $this->secureRenderer->renderEventListenerAsTag(
177177
'onclick',
178+
'event.preventDefault();' .
178179
"Fieldset.toggleCollapse('" . $element->getHtmlId() . "', '" .
179180
$this->_urlBuilder->getUrl('*/*/state') . "'); return false;",
180181
'a#' . $element->getHtmlId() . '-head'

0 commit comments

Comments
 (0)