1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 01:34:31 +02:00

Fix issue processwire/processwire-issues#603 where toggling repeater item open/closed makes outline disappear the second time you do it

This commit is contained in:
Ryan Cramer
2018-05-23 08:28:54 -04:00
parent c512fd68e3
commit d06fd64171
2 changed files with 3 additions and 1 deletions

View File

@@ -1079,6 +1079,8 @@ function InputfieldStates($target) {
$li.addClass('InputfieldStateWasCollapsed'); // this class only used here
$li.trigger(isCollapsed ? 'openReady' : 'closeReady');
$li.toggleClass('InputfieldStateCollapsed', duration, function() {
// jQuery seems to add overflow:hidden, and this interferes with outline CSS property on Inputfields
if($li.css('overflow') == 'hidden') $li.css('overflow', '');
if(isCollapsed) {
$li.trigger('opened');
if($li.hasClass('InputfieldColumnWidth')) $li.children('.InputfieldContent').show();

File diff suppressed because one or more lines are too long