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:
@@ -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
Reference in New Issue
Block a user