mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat(editor): replace slot with rxjs subject (#10768)
This commit is contained in:
@@ -144,7 +144,7 @@ export class Tooltip extends LitElement {
|
||||
let arrowStyles: StyleInfo = {};
|
||||
return {
|
||||
template: ({ positionSlot, updatePortal }) => {
|
||||
positionSlot.on(data => {
|
||||
positionSlot.subscribe(data => {
|
||||
// The tooltip placement may change,
|
||||
// so we need to update the arrow position
|
||||
if (this.arrow) {
|
||||
|
||||
Reference in New Issue
Block a user