Skip to content

Commit

Permalink
popover-bug popover bug resolved (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas-cldcvr authored Oct 10, 2024
1 parent a79c7f0 commit 97ddd1a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions packages/flow-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [2.11.5] - 2024-10-10

### patch changes

- overlay-click event behavior updated

## [2.11.4] - 2024-10-10

### patch changes
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nonfx/flow-core",
"version": "2.11.4",
"version": "2.11.5",
"description": "Core package of flow design system",
"type": "module",
"module": "dist/flow-core.es.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ f-popover {
background-color: var(--color-surface-tertiary);
}

&[open][overlay] {
&[open] {
&::after {
content: "";
background-color: #000;
background-color: transparent;
opacity: 0.5;
position: fixed;
top: 0px;
Expand All @@ -125,5 +125,11 @@ f-popover {
left: 0px;
z-index: 1;
}

&[overlay] {
&::after {
background-color: #000;
}
}
}
}
2 changes: 1 addition & 1 deletion packages/flow-core/src/components/f-popover/f-popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export class FPopover extends FRoot {
}

outsideClick = (e: MouseEvent) => {
if (this.open && e?.target !== this.targetElement) {
if (this.open && e?.target === this) {
const rect = this.getBoundingClientRect();
const isInsideClick =
e.clientX > rect.left &&
Expand Down

0 comments on commit 97ddd1a

Please sign in to comment.