Skip to content

Commit

Permalink
fix(core): stop propagation when focus cell right toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk authored and BroKun committed Jan 16, 2024
1 parent 8fdb54f commit ad58473
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/libro-core/src/components/dnd-cell-item-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,13 @@ export const DndCellItemContainer = memo(function DndCellItemContainer(
<ExecuteTooltipArea cell={cell} isMouseOverDragArea={isMouseOverDragArea} />
<DndCellItemContent cell={cell} />
{sideToolbarVisible && (
<div className="libro-cell-right-toolbar">
<div
className="libro-cell-right-toolbar"
tabIndex={0}
onFocus={(e) => {
e.stopPropagation();
}}
>
{isActive && !isDrag && instance.model.readOnly !== true && (
<ToolbarRender
data={rightToolbarArgs}
Expand Down

0 comments on commit ad58473

Please sign in to comment.