Skip to content

Commit e4788a9

Browse files
committed
fix: make id on alert conditional on if there's an inputelementid
1 parent 276a099 commit e4788a9

File tree

1 file changed

+1
-1
lines changed
  • packages/shared/widget-plugin-component-kit/src

1 file changed

+1
-1
lines changed

packages/shared/widget-plugin-component-kit/src/Alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const Alert = ({ className, bootstrapStyle, children, role, inputElementI
3232
<div
3333
className={classNames(`alert alert-${bootstrapStyle}`, className)}
3434
role={role}
35-
id={inputElementId + "-error"}
35+
{...(inputElementId ? { id: inputElementId + "-error" } : undefined)}
3636
>
3737
{children}
3838
</div>

0 commit comments

Comments
 (0)