mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
FIX: Prevent emoji-picker from not showing (#7856)
If an external plugin inserts an element with class "emoji-picker", something probable if they extend EmojiPicker, it could cause troubles as css is added depending on the emoji-picker height. Just by adding a class of a parent <div> as could be d-editor, we prevent this from happening.
This commit is contained in:
parent
a5e80079d6
commit
c5625b70f1
|
@ -565,7 +565,7 @@ export default Ember.Component.extend({
|
|||
} else {
|
||||
const previewInputOffset = $(".d-editor-input").offset();
|
||||
|
||||
const pickerHeight = $(".emoji-picker").height();
|
||||
const pickerHeight = $(".d-editor .emoji-picker").height();
|
||||
const editorHeight = $(".d-editor-input").height();
|
||||
const windowBottom = $(window).scrollTop() + $(window).height();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user