Skip to content

Commit 0533507

Browse files
authored
Revert "prevent event propagation on icon click (#1036)" (#1043)
1 parent 9d266bb commit 0533507

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.changeset/ninety-onions-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ensembleui/react-runtime": patch
3+
---
4+
5+
revert: prevent event propagation on icon click

packages/runtime/src/widgets/Icon.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ export const Icon: React.FC<IconProps> = ({
5353
return (
5454
<IconComponent
5555
className={values?.styles?.names}
56-
onClick={(e): void => {
57-
e.stopPropagation();
58-
onTapActionCallback?.callback();
59-
}}
56+
onClick={(): unknown => onTapActionCallback?.callback()}
6057
onMouseEnter={handleMouseOver}
6158
onMouseLeave={handleMouseLeave}
6259
sx={{

0 commit comments

Comments
 (0)