Commit 6ed95857 authored by Яков's avatar Яков
Browse files

update fix issue

parent 80fe649e
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.1.56", "version": "1.1.57",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -656,6 +656,9 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos, select ...@@ -656,6 +656,9 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos, select
style={getInnerStyle()} style={getInnerStyle()}
onClick={handleNodeClick} onClick={handleNodeClick}
onTouchEnd={(e) => { onTouchEnd={(e) => {
// Если тап на кнопке/интерактивном элементе — не перехватываем,
// иначе click на кнопках не сработает.
if (e.target.closest('button, a, input, [role="button"]')) return;
e.preventDefault(); e.preventDefault();
try { try {
const pos = getPos?.(); const pos = getPos?.();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment