Skip to content

Commit 42a1596

Browse files
don't show validation message on input reset
1 parent f30fd26 commit 42a1596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/comps/controls/labelControl.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { MultiCompBuilder } from "comps/generators/multi";
99
import { labelCss, Section, Tooltip, UnderlineCss } from "lowcoder-design";
1010
import { ValueFromOption } from "lowcoder-design";
1111
import { isEmpty } from "lodash";
12-
import { Fragment, ReactNode } from "react";
12+
import { Fragment, ReactElement, ReactNode } from "react";
1313
import styled, { css } from "styled-components";
1414
import { AlignLeft } from "lowcoder-design";
1515
import { AlignRight } from "lowcoder-design";
@@ -237,7 +237,7 @@ export const LabelControl = (function () {
237237
</ChildrenWrapper>
238238
</MainWrapper>
239239

240-
{args.help && (
240+
{args.help && Boolean((args.children as ReactElement)?.props.value) && (
241241
<HelpWrapper
242242
$marginLeft={
243243
props.position === "column" || isEmpty(props.text) || props.hidden

0 commit comments

Comments
 (0)