mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix TreeDropdownField auto-close regression
Causes build failures due to Behat not being able to select a link from a dropdown in "Insert Media". Follow on effect from triggering a window.resize event when the window wasn't actually resized (in order to force a layout redraw). See https://github.com/silverstripe/silverstripe-framework/pull/5087 for context
This commit is contained in:
parent
ff5fd7a944
commit
7bb6295c79
@ -204,7 +204,10 @@
|
||||
fromContainingPanel: {
|
||||
ontoggle: function(e){
|
||||
this.toggleClass('collapsed', $(e.target).hasClass('collapsed'));
|
||||
$(window).resize(); //Trigger jLayout
|
||||
|
||||
// Trigger synthetic resize event. Avoid native window.resize event
|
||||
// since it causes other behaviour which should be reserved for actual window dimension changes.
|
||||
$('.cms-container').trigger('windowresize');
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user