sticky-kit
sticky-kit copied to clipboard
sticky_kit:recalc - focus bug
trigger("sticky_kit:recalc") -> textarea loses focus*
*(textarea auto height)
elm.insertAfter(spacer).css({ position: "", top: "", width: "", bottom: "" }).removeClass(sticky_class)
change:
elm.after(spacer).css({ position: "", top: "", width: "", bottom: "" }).removeClass(sticky_class)
textarea not lose focus, but not tested all events
I also run into issues that are caused by elements losing focus. elements on iOS + Safari start to behave terribly when lossing focus, hiding the options list immediately after opening. So I need to work around this problem.
Could the plugin be modified to not blur elements? Thanks in advance!
I ran into this issue as well on android with an input in the sticky element.
I just disabled the auto spacer and added my own - seems to have fixed it.