mirror of https://github.com/zulip/zulip.git
e1cc0455ee
In this commit we basically do these things: * Clear up section_head_offsets before pushing stuff in it so that its size doesn't keep on growing indefinitely with time and users opening emoji picker. * Make use of popover element to find the correct element in DOM to scan for section elements. This prevents us from filling stuff twice into section_head_offsets because of presence of two elements for '.emoji-popover-subheading' in DOM since popover destroy is an async call. * Using this popover element also helps in avoiding manuplation of the DOM elements of the popover that was destroyed (Because popover destroy is async it still maybe around). One instance of this is associating scroll event with the right instance of '.emoji-popover-emoji-map'. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
locale | ||
styles | ||
swagger | ||
templates | ||
third | ||
ts | ||
.gitignore | ||
favicon.ico | ||
node_modules | ||
robots.txt |