fix(editor): should focus on input of popover on toolbar (#11485)

Related to: https://github.com/toeverything/AFFiNE/pull/11429
This commit is contained in:
fundon
2025-04-07 03:04:34 +00:00
parent 568a390b75
commit 8a13eca271
2 changed files with 49 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ import {
type GfxModel,
GfxPrimitiveElementModel,
} from '@blocksuite/std/gfx';
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/std/inline';
import type { ReferenceElement, SideObject } from '@floating-ui/dom';
import { batch, effect, signal } from '@preact/signals-core';
import { css, unsafeCSS } from 'lit';
@@ -247,6 +248,8 @@ export class AffineToolbarWidget extends WidgetComponent {
override connectedCallback() {
super.connectedCallback();
this.setAttribute(RANGE_SYNC_EXCLUDE_ATTR, 'true');
const {
sideOptions$,
referenceElement$,