sticky-kit icon indicating copy to clipboard operation
sticky-kit copied to clipboard

sticky_kit:recalc - focus bug

Open GGKenChi opened this issue 11 years ago • 3 comments

trigger("sticky_kit:recalc") -> textarea loses focus*

*(textarea auto height)

GGKenChi avatar Jun 25 '14 16:06 GGKenChi

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

GGKenChi avatar Jun 25 '14 17:06 GGKenChi

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!

kweij avatar May 26 '15 10:05 kweij

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.

generatepress avatar Dec 18 '15 18:12 generatepress