fix: only show ElementPopup for content elements, not divs
Filter clicks to only trigger ElementPopup for semantic content elements (paragraphs, headings, images, lists, tables, etc.). Clicking on generic divs or structural PagedJS elements now closes popups instead of opening ElementPopup. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
30d1d26d15
commit
0052c3c19f
2 changed files with 35 additions and 3 deletions
|
|
@ -639,8 +639,8 @@ const close = () => {
|
|||
selectedElement.value = null;
|
||||
};
|
||||
|
||||
const handleIframeClick = (event) => {
|
||||
const element = event.target;
|
||||
const handleIframeClick = (event, targetElement = null) => {
|
||||
const element = targetElement || event.target;
|
||||
|
||||
if (element.tagName === 'BODY' || element.tagName === 'HTML') {
|
||||
close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue