Skip to content

Commit

Permalink
fix(designer): Alert error messages for required editor fields (#3592)
Browse files Browse the repository at this point in the history
Alert error messages for required editor fields

Co-authored-by: Ram Gupta <[email protected]>
  • Loading branch information
Ram-G and Ram Gupta authored Nov 3, 2023
1 parent b39273a commit 7a3a0ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/designer/src/lib/ui/settings/settingsection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,11 @@ const Setting = ({ id, settings, isReadOnly }: { id?: string; settings: Settings
<div key={i} style={{ display: 'flex', gap: '4px' }}>
<div className={getClassName()} style={{ flex: '1 1 auto' }}>
{renderSetting()}
{errorMessage && !hideErrorMessage[i] && <div className="msla-input-parameter-error">{errorMessage}</div>}
{errorMessage && !hideErrorMessage[i] && (
<span className="msla-input-parameter-error" role="alert">
{errorMessage}
</span>
)}
</div>
<RemoveConditionalParameter />
</div>
Expand Down

0 comments on commit 7a3a0ef

Please sign in to comment.