Skip to content

Dev -> Main for v2.7.2 #1776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 76 commits into from
Jun 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
f84b565
Added support for grids similar to rjsf
kamal-qureshi Jun 3, 2025
6a3ce06
[Feat]: #1585 Add handlers for ColumnTypes like buttons, select, link…
iamfaran Jun 3, 2025
a8ffe8c
Merge pull request #1742 from iamfaran/feat/1585-table-events
FalkWolsky Jun 3, 2025
aa8d8f9
Merge pull request #1740 from kamalqureshi/updated_jsonschema_forms
FalkWolsky Jun 3, 2025
70eddf1
Added double click to the table event hanlders
kamal-qureshi Jun 3, 2025
b60860a
Merge pull request #1743 from kamalqureshi/table_doubleClick_eventHan…
raheeliftikhar5 Jun 3, 2025
780ca30
fixed input state change not updating temporary state value
raheeliftikhar5 Jun 4, 2025
f113adc
[Fix]: Workspace switch submenu overflow for Mobile Screens
iamfaran Jun 4, 2025
f589510
Merge pull request #1746 from iamfaran/fix/1414-responsive
raheeliftikhar5 Jun 4, 2025
f23c309
Added hide toggle for columns in responsive layout
kamal-qureshi Jun 4, 2025
a621bdf
clear column type render comp to fix editing issue
raheeliftikhar5 Jun 5, 2025
9187921
[Feat]: Add default, custom preset for tags and margins etc
iamfaran Jun 5, 2025
2e96d65
Merge branch 'dev' of github.com:lowcoder-org/lowcoder into feat/1578…
iamfaran Jun 5, 2025
a00e634
fixed modal z-index after optimisations
raheeliftikhar5 Jun 5, 2025
e359961
Merge branch 'dev' into hide_column_layout
kamal-qureshi Jun 5, 2025
f7ba1b8
Updated Boolean toggle with Boolean Code Control
kamal-qureshi Jun 5, 2025
45bdd9b
Merge branch 'dev' into feat/1578-tags
raheeliftikhar5 Jun 6, 2025
2dedc8f
Merge pull request #1749 from iamfaran/feat/1578-tags
raheeliftikhar5 Jun 6, 2025
54b6d24
Merge branch 'dev' into hide_column_layout
raheeliftikhar5 Jun 6, 2025
c3454f3
Merge pull request #1747 from kamalqureshi/hide_column_layout
raheeliftikhar5 Jun 6, 2025
1006e08
add endpoint "user/myorg"
dragonpoo Jun 6, 2025
7339ba1
added control in autoComplete comp to filter options by input value
raheeliftikhar5 Jun 6, 2025
3637da2
show/hide summary row's column based on dynamic columns settings in t…
raheeliftikhar5 Jun 6, 2025
9752906
[Feat]: Add event handlers on more column types
iamfaran Jun 6, 2025
297f605
Merge branch 'dev' of github.com:lowcoder-org/lowcoder into feat/colu…
iamfaran Jun 6, 2025
e9ec6de
Added double click to almost all components
kamal-qureshi Jun 6, 2025
dc8ccc5
Merge pull request #1753 from iamfaran/feat/column-handlers
raheeliftikhar5 Jun 10, 2025
1bc331a
Merge branch 'dev' into doubleClick_event_component
raheeliftikhar5 Jun 10, 2025
8f2b188
Optimized Plugin Loading for Improved Performance
dragonpoo Jun 11, 2025
400c53a
fix: add default values for environment variables
ludomikula Jun 11, 2025
b93592b
Update en.ts
kamal-qureshi Jun 11, 2025
f3c8d43
Merge branch 'dev' into doubleClick_event_component
kamal-qureshi Jun 11, 2025
a65010b
Updated event value
kamal-qureshi Jun 11, 2025
0431090
Fixed single click events on firing double click
kamal-qureshi Jun 11, 2025
18b9078
Merge pull request #1767 from kamalqureshi/hide_column_layout
raheeliftikhar5 Jun 12, 2025
8778c63
Merge pull request #1768 from kamalqureshi/table_doubleClick_eventHan…
raheeliftikhar5 Jun 12, 2025
51b9205
small fix for summary rows
raheeliftikhar5 Jun 12, 2025
a0190a5
Merge branch 'dev' into doubleClick_event_component
kamal-qureshi Jun 12, 2025
1798dbd
expose selected option with autocomplete comp
raheeliftikhar5 Jun 12, 2025
55ffef5
fixed datatime column editing issue in table
raheeliftikhar5 Jun 12, 2025
a538642
Merge branch 'dev' into doubleClick_event_component
kamal-qureshi Jun 12, 2025
4dbce10
Updated Double Click event on all components
kamal-qureshi Jun 12, 2025
a27f132
fix: - Added timeout - Removed Console logs
kamal-qureshi Jun 12, 2025
804449f
fix choose datasource dropdown in query panel value
raheeliftikhar5 Jun 12, 2025
0d1e53e
revert table column's event handlers
raheeliftikhar5 Jun 12, 2025
09f6c22
fix data mapping dropdown value in table's column setting
raheeliftikhar5 Jun 13, 2025
c6f2d79
fix memory leaks and convert click event wrapper to hook
raheeliftikhar5 Jun 13, 2025
5c18bfc
Merge branch 'dev' into doubleClick_event_component
kamal-qureshi Jun 13, 2025
2798f3f
revert back
iamfaran Jun 13, 2025
bd26493
fix localstorge values not reading on navigation to another app
raheeliftikhar5 Jun 13, 2025
b84dd48
fix editor_mode_status and editor_panel_status values not updating in…
raheeliftikhar5 Jun 13, 2025
a87e00b
[Fix]: Add backward compatibility for button, link and links
iamfaran Jun 13, 2025
dfe87b3
Merge branch 'dev' of github.com:lowcoder-org/lowcoder into fix/event…
iamfaran Jun 13, 2025
fafab63
fixed localstorage issues on accessing it after navigation to other app
raheeliftikhar5 Jun 13, 2025
6eb8842
added migration to handle old action handlers in table's button colum…
raheeliftikhar5 Jun 13, 2025
4022c65
removed unused code
raheeliftikhar5 Jun 13, 2025
e361299
fix simple column type (btn)
iamfaran Jun 13, 2025
3deda9b
Merge branch 'dev' of github.com:lowcoder-org/lowcoder into fix/event…
iamfaran Jun 13, 2025
4a2f13b
revert link column type
iamfaran Jun 13, 2025
28d3743
add backward compatibility for link type
iamfaran Jun 13, 2025
304c2c2
revert links type
iamfaran Jun 13, 2025
62285ce
add backward compatibility for links type
iamfaran Jun 13, 2025
6923e1b
Merge pull request #1769 from iamfaran/fix/event-handlers
raheeliftikhar5 Jun 14, 2025
fe1deda
Merge branch 'dev' into doubleClick_event_component
kamal-qureshi Jun 14, 2025
df38a03
Optimizations - Added hook for click event handlers
kamal-qureshi Jun 16, 2025
b454a7f
- Requested Changes
kamal-qureshi Jun 16, 2025
5396230
Merge pull request #1754 from kamalqureshi/doubleClick_event_component
raheeliftikhar5 Jun 16, 2025
6d4cd53
fixed orgmembers with searchMemberName and searchGroupId
dragonpoo Jun 16, 2025
40619e9
fix hidden container results into white spaces
raheeliftikhar5 Jun 17, 2025
68b9513
remove console errors
raheeliftikhar5 Jun 17, 2025
d509dc7
Fixed pagination for myorg endpoint.
dragonpoo Jun 17, 2025
a10c20b
Fixed pagination for myorg endpoint.
dragonpoo Jun 17, 2025
3a7ace3
Update Version Numbers
Jun 17, 2025
49b9126
Adding Better News, Enterprise Form and Translations
Jun 17, 2025
713f1f7
Preparation for Release v2.7.2
Jun 17, 2025
854a10e
Merge pull request #1766 from lowcoder-org/fix/add_default_variables
FalkWolsky Jun 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added double click to almost all components
  • Loading branch information
kamal-qureshi committed Jun 6, 2025
commit e9ec6deb2f3f304a2e8c8881c4fe9845d6e1745f
4 changes: 3 additions & 1 deletion client/packages/lowcoder/src/comps/comps/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { IconControl } from "comps/controls/iconControl";
import {
clickEvent,
eventHandlerControl,
doubleClickEvent,
} from "../controls/eventHandlerControl";
import { Avatar, AvatarProps, Badge, Dropdown, Menu } from "antd";
import { LeftRightControl, dropdownControl } from "../controls/dropdownControl";
Expand Down Expand Up @@ -106,7 +107,7 @@ padding: ${props=>props.$style.padding};
background: ${props=>props.$style.background};
text-decoration: ${props => props.$style.textDecoration};
`
const EventOptions = [clickEvent] as const;
const EventOptions = [clickEvent, doubleClickEvent] as const;
const sharpOptions = [
{ label: trans("avatarComp.square"), value: "square" },
{ label: trans("avatarComp.circle"), value: "circle" },
Expand Down Expand Up @@ -183,6 +184,7 @@ const AvatarView = (props: RecordConstructorToView<typeof childrenMap>) => {
src={src.value}
// $cursorPointer={eventsCount > 0}
onClick={() => props.onEvent("click")}
onDoubleClick={() => props.onEvent("doubleClick")}
>
{title.value}
</AvatarWrapper>
Expand Down
7 changes: 5 additions & 2 deletions client/packages/lowcoder/src/comps/comps/avatarGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { hiddenPropertyView } from "comps/utils/propertyUtils";
import { trans } from "i18n";
import { NumberControl, StringControl } from "comps/controls/codeControl";
import { Avatar, Tooltip } from "antd";
import { clickEvent, eventHandlerControl, refreshEvent } from "../controls/eventHandlerControl";
import { clickEvent, doubleClickEvent, eventHandlerControl, refreshEvent } from "../controls/eventHandlerControl";
import styled from "styled-components";
import { useContext, ReactElement, useEffect } from "react";
import { MultiCompBuilder, stateComp, withDefault } from "../generators";
Expand Down Expand Up @@ -77,7 +77,7 @@ const DropdownOption = new MultiCompBuilder(
))
.build();

const EventOptions = [clickEvent, refreshEvent] as const;
const EventOptions = [clickEvent, refreshEvent, doubleClickEvent] as const;

export const alignOptions = [
{ label: <AlignLeft />, value: "flex-start" },
Expand Down Expand Up @@ -128,6 +128,9 @@ const AvatarGroupView = (props: RecordConstructorToView<typeof childrenMap> & {
props.onEvent("click")
props.dispatch(changeChildAction("currentAvatar", item as JSONObject, false));
}}
onDoubleClick={() => {
props.onEvent("doubleClick")
}}
>
{item.label}
</Avatar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
eventHandlerControl,
deleteEvent,
mentionEvent,
doubleClickEvent,
} from "comps/controls/eventHandlerControl";

import { EditorContext } from "comps/editorState";
Expand Down Expand Up @@ -80,6 +81,7 @@ dayjs.extend(relativeTime);

const EventOptions = [
clickEvent,
doubleClickEvent,
submitEvent,
deleteEvent,
mentionEvent,
Expand Down Expand Up @@ -290,7 +292,10 @@ const CommentCompBase = (
<List.Item.Meta
avatar={generateCommentAvatar(item)}
title={
<div onClick={() => props.onEvent("click")}>
<div
onClick={() => props.onEvent("click")}
onDoubleClick={() => props.onEvent("doubleClick")}
>
<a>{item?.user?.name}</a>
<Tooltip
title={
Expand Down
4 changes: 3 additions & 1 deletion client/packages/lowcoder/src/comps/comps/iconComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { AutoHeightControl } from "../controls/autoHeightControl";
import {
clickEvent,
eventHandlerControl,
doubleClickEvent,
} from "../controls/eventHandlerControl";
import { useContext } from "react";
import { EditorContext } from "comps/editorState";
Expand Down Expand Up @@ -72,7 +73,7 @@ const Container = styled.div<{
`}
`;

const EventOptions = [clickEvent] as const;
const EventOptions = [clickEvent, doubleClickEvent] as const;

const ModeOptions = [
{ label: "Standard", value: "standard" },
Expand Down Expand Up @@ -135,6 +136,7 @@ const IconView = (props: RecordConstructorToView<typeof childrenMap>) => {
$animationStyle={props.animationStyle}
style={style}
onClick={() => props.onEvent("click")}
onDoubleClick={() => props.onEvent("doubleClick")}
>
{ props.sourceMode === 'standard'
? (props.icon || '')
Expand Down
4 changes: 3 additions & 1 deletion client/packages/lowcoder/src/comps/comps/imageComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Section, sectionNames } from "lowcoder-design";
import {
clickEvent,
eventHandlerControl,
doubleClickEvent,
} from "../controls/eventHandlerControl";
import { StringStateControl } from "../controls/codeStateControl";
import { UICompBuilder, withDefault } from "../generators";
Expand Down Expand Up @@ -112,7 +113,7 @@ const getStyle = (style: ImageStyleType) => {
`;
};

const EventOptions = [clickEvent] as const;
const EventOptions = [clickEvent, doubleClickEvent] as const;
const ModeOptions = [
{ label: "URL", value: "standard" },
{ label: "Asset Library", value: "asset-library" },
Expand Down Expand Up @@ -212,6 +213,7 @@ const ContainerImg = (props: RecordConstructorToView<typeof childrenMap>) => {
preview={props.supportPreview ? {src: props.previewSrc || props.src.value } : false}
fallback={DEFAULT_IMG_URL}
onClick={() => props.onEvent("click")}
onDoubleClick={() => props.onEvent("doubleClick")}
/>
</div>
</Container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { avatarGroupStyle, AvatarGroupStyleType } from "comps/controls/styleCont
import { AlignCenter, AlignLeft, AlignRight } from "lowcoder-design";
import { NumberControl } from "comps/controls/codeControl";
import { Avatar, Tooltip } from "antd";
import { clickEvent, eventHandlerControl, refreshEvent } from "comps/controls/eventHandlerControl";
import { clickEvent, eventHandlerControl, refreshEvent, doubleClickEvent } from "comps/controls/eventHandlerControl";
import React, { ReactElement, useCallback, useEffect, useRef } from "react";
import { IconControl } from "comps/controls/iconControl";
import { ColorControl } from "comps/controls/colorControl";
Expand Down Expand Up @@ -68,7 +68,7 @@ const DropdownOption = new MultiCompBuilder(
})
.build();

const EventOptions = [clickEvent, refreshEvent] as const;
const EventOptions = [clickEvent, refreshEvent, doubleClickEvent] as const;

export const alignOptions = [
{ label: <AlignLeft />, value: "flex-start" },
Expand Down Expand Up @@ -106,6 +106,11 @@ const MemoizedAvatar = React.memo(({
onEvent("click");
}, [onEvent]);

const handleDoubleClick = useCallback(() => {
if (!mountedRef.current) return;
onEvent("doubleClick");
}, [onEvent]);

return (
<Tooltip title={item.Tooltip} key={index}>
<Avatar
Expand All @@ -117,6 +122,7 @@ const MemoizedAvatar = React.memo(({
}}
size={avatarSize}
onClick={handleClick}
onDoubleClick={handleDoubleClick}
>
{item.label}
</Avatar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ButtonStyle } from "comps/controls/styleControlConstants";
import { Button100 } from "comps/comps/buttonComp/buttonCompConstants";
import styled from "styled-components";
import { ButtonType } from "antd/es/button";
import { clickEvent, eventHandlerControl } from "comps/controls/eventHandlerControl";
import { clickEvent, eventHandlerControl, doubleClickEvent } from "comps/controls/eventHandlerControl";

const StyledButton = styled(Button100)`
display: flex;
Expand All @@ -29,7 +29,7 @@ const StyledIconWrapper = styled(IconWrapper)`
margin: 0;
`;

const DropdownEventOptions = [clickEvent] as const;
const DropdownEventOptions = [clickEvent, doubleClickEvent] as const;

const childrenMap = {
buttonType: dropdownControl(ButtonTypeOptions, "primary"),
Expand Down Expand Up @@ -67,10 +67,16 @@ const DropdownMenu = React.memo(({ items, options, onEvent }: { items: any[]; op
e.preventDefault();
}, []);

const handleDoubleClick = useCallback((e: React.MouseEvent) => {
if (!mountedRef.current) return;
onEvent?.("doubleClick");
}, [onEvent]);

return (
<Menu
items={items}
onClick={handleClick}
onDoubleClick={handleDoubleClick}
onMouseDown={handleMouseDown}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import { disabledPropertyView } from "comps/utils/propertyUtils";
import styled, { css } from "styled-components";
import { styleControl } from "comps/controls/styleControl";
import { TableColumnLinkStyle } from "comps/controls/styleControlConstants";
import { clickEvent, eventHandlerControl } from "comps/controls/eventHandlerControl";
import { clickEvent, eventHandlerControl, doubleClickEvent } from "comps/controls/eventHandlerControl";

export const ColumnValueTooltip = trans("table.columnValueTooltip");

const LinkEventOptions = [clickEvent] as const;
const LinkEventOptions = [clickEvent, doubleClickEvent] as const;

const childrenMap = {
text: StringControl,
Expand Down Expand Up @@ -44,10 +44,17 @@ export const ColumnLink = React.memo(({ disabled, label, onEvent }: { disabled:
}
}, [disabled, onEvent]);

const handleDoubleClick = useCallback(() => {
if (!disabled && onEvent) {
onEvent("doubleClick");
}
}, [disabled, onEvent]);

return (
<StyledLink
$disabled={disabled}
onClick={handleClick}
onDoubleClick={handleDoubleClick}
>
{label}
</StyledLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { trans } from "i18n";
import styled from "styled-components";
import { ColumnLink } from "comps/comps/tableComp/column/columnTypeComps/columnLinkComp";
import { LightActiveTextColor, PrimaryColor } from "constants/style";
import { clickEvent, eventHandlerControl } from "comps/controls/eventHandlerControl";
import { clickEvent, eventHandlerControl, doubleClickEvent } from "comps/controls/eventHandlerControl";

const MenuLinkWrapper = styled.div`
> a {
Expand Down Expand Up @@ -38,7 +38,7 @@ const MenuWrapper = styled.div`
}
`;

const LinksEventOptions = [clickEvent] as const;
const LinksEventOptions = [clickEvent, doubleClickEvent] as const;

// Update OptionItem to include event handlers
const OptionItem = new MultiCompBuilder(
Expand Down Expand Up @@ -76,11 +76,15 @@ const MenuItem = React.memo(({ option, index }: { option: any; index: number })
if (option.onClick) {
option.onClick();
}
if (option.onDoubleClick) {
option.onDoubleClick();
}
if (option.onEvent) {
option.onEvent("click");
}

}
}, [option.disabled, option.onClick, option.onEvent]);
}, [option.disabled, option.onClick, option.onEvent, option.onDoubleClick]);

return (
<MenuLinkWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { trans } from "i18n";
import { ColumnTypeCompBuilder, ColumnTypeViewFn } from "../columnTypeCompBuilder";
import { ColumnValueTooltip } from "../simpleColumnTypeComps";
import { styled } from "styled-components";
import { clickEvent, eventHandlerControl } from "comps/controls/eventHandlerControl";
import { clickEvent, eventHandlerControl, doubleClickEvent } from "comps/controls/eventHandlerControl";

const Wrapper = styled.div`
display: inline-flex;
Expand Down Expand Up @@ -79,7 +79,7 @@ const Wrapper = styled.div`
}
`;

const SelectOptionEventOptions = [clickEvent] as const;
const SelectOptionEventOptions = [clickEvent, doubleClickEvent] as const;

// Create a new option type with event handlers for each option
const SelectOptionWithEvents = new MultiCompBuilder(
Expand Down Expand Up @@ -144,11 +144,14 @@ const SelectEdit = React.memo((props: SelectEditProps) => {
if (!mountedRef.current) return;
props.onChange(val);
setCurrentValue(val);

// Trigger the specific option's event handler
const selectedOption = props.options.find(option => option.value === val);
if (selectedOption && selectedOption.onEvent) {
selectedOption.onEvent("click");
if (selectedOption?.onEvent) {
if (selectedOption.onEvent.isBind("click")) {
selectedOption.onEvent("click");
} else if (selectedOption.onEvent.isBind("doubleClick")) {
selectedOption.onEvent("doubleClick");
}
}
}, [props.onChange, props.options]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import React, { useCallback, useEffect, useMemo } from "react";
import { CSSProperties } from "react";
import { RecordConstructorToComp } from "lowcoder-core";
import { ToViewReturn } from "@lowcoder-ee/comps/generators/multi";
import { clickEvent, eventHandlerControl } from "comps/controls/eventHandlerControl";
import { clickEvent, eventHandlerControl, doubleClickEvent } from "comps/controls/eventHandlerControl";

export const ColumnValueTooltip = trans("table.columnValueTooltip");

Expand All @@ -32,7 +32,7 @@ export const ButtonTypeOptions = [
},
] as const;

const ButtonEventOptions = [clickEvent] as const;
const ButtonEventOptions = [clickEvent, doubleClickEvent] as const;

const childrenMap = {
text: StringControl,
Expand All @@ -55,6 +55,10 @@ const ButtonStyled = React.memo(({ props }: { props: ToViewReturn<RecordConstruc
props.onEvent("click");
}, [props.onEvent]);

const handleDoubleClick = useCallback((e: React.MouseEvent) => {
props.onEvent("doubleClick");
}, [props.onEvent]);

const buttonStyle = useMemo(() => ({
margin: 0,
width: iconOnly ? 'auto' : undefined,
Expand All @@ -71,6 +75,7 @@ const ButtonStyled = React.memo(({ props }: { props: ToViewReturn<RecordConstruc
$buttonStyle={props.buttonType === "primary" ? style : undefined}
style={buttonStyle}
icon={hasPrefixIcon ? props.prefixIcon : undefined}
onDoubleClick={handleDoubleClick}
>
{/* prevent the button from disappearing */}
{hasText ? props.text : (iconOnly ? null : " ")}
Expand Down
9 changes: 6 additions & 3 deletions client/packages/lowcoder/src/comps/comps/textComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import { PaddingControl } from "../controls/paddingControl";

import React, { useContext, useEffect, useRef, useMemo } from "react";
import { EditorContext } from "comps/editorState";
import { clickEvent, eventHandlerControl } from "../controls/eventHandlerControl";
import { clickEvent, doubleClickEvent, eventHandlerControl } from "../controls/eventHandlerControl";
import { NewChildren } from "../generators/uiCompBuilder";
import { RecordConstructorToComp } from "lowcoder-core";
import { ToViewReturn } from "../generators/multi";
import { BoolControl } from "../controls/boolControl";

const EventOptions = [clickEvent] as const;
const EventOptions = [clickEvent, doubleClickEvent] as const;

const getStyle = (style: TextStyleType) => {
return css`
Expand Down Expand Up @@ -227,7 +227,9 @@ const TextView = React.memo((props: ToViewReturn<ChildrenType>) => {
const handleClick = React.useCallback(() => {
props.onEvent("click");
}, [props.onEvent]);

const handleDoubleClick = React.useCallback(() => {
props.onEvent("doubleClick");
}, [props.onEvent]);
const containerStyle = useMemo(() => ({
justifyContent: props.horizontalAlignment,
alignItems: props.autoHeight ? "center" : props.verticalAlignment,
Expand All @@ -247,6 +249,7 @@ const TextView = React.memo((props: ToViewReturn<ChildrenType>) => {
$styleConfig={props.style}
style={containerStyle}
onClick={handleClick}
onDoubleClick={handleDoubleClick}
>
<ScrollBar hideScrollbar={!props.contentScrollBar}>
{content}
Expand Down
Loading
Loading