Merge branch 'emoji-popovers' into shigusegubu-vue3
* emoji-popovers: fix unit tests
This commit is contained in:
commit
e6fbf4ce12
1 changed files with 6 additions and 2 deletions
|
@ -211,8 +211,12 @@ const EmojiInput = {
|
||||||
if (!input) return
|
if (!input) return
|
||||||
this.input = input
|
this.input = input
|
||||||
this.caretEl = hiddenOverlayCaret
|
this.caretEl = hiddenOverlayCaret
|
||||||
suggestorPopover.setAnchorEl(this.caretEl)
|
if (suggestorPopover.setAnchorEl) {
|
||||||
this.$refs.picker.setAnchorEl(this.caretEl)
|
suggestorPopover.setAnchorEl(this.caretEl) // unit test compat
|
||||||
|
this.$refs.picker.setAnchorEl(this.caretEl)
|
||||||
|
} else {
|
||||||
|
console.warn('setAnchorEl not found, are we in a unit test?')
|
||||||
|
}
|
||||||
const style = getComputedStyle(this.input)
|
const style = getComputedStyle(this.input)
|
||||||
this.overlayStyle.padding = style.padding
|
this.overlayStyle.padding = style.padding
|
||||||
this.overlayStyle.border = style.border
|
this.overlayStyle.border = style.border
|
||||||
|
|
Loading…
Add table
Reference in a new issue