Frio: recalculate sticky aside on click only on a tags
This to prevent input elements in aside to lose focus after the recalculation.
This commit is contained in:
parent
d162e689da
commit
61e8147daf
|
@ -332,9 +332,9 @@ $(document).ready(function(){
|
|||
offset_top: 100, // px, header + tab bar + spacing
|
||||
recalc_every: 10
|
||||
});
|
||||
// recalculate sticky aside on clicks.
|
||||
// recalculate sticky aside on clicks on <a> elements
|
||||
// this handle height changes on expanding submenus
|
||||
$("aside").on("click", function(){
|
||||
$("aside").on("click", "a", function(){
|
||||
$(document.body).trigger("sticky_kit:recalc");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue