Skip to content

Commit

Permalink
✅ [#4969] Add story to ensure fieldset is expanded if there are errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Jan 2, 2025
1 parent ddc6e97 commit 3e30737
Showing 1 changed file with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,41 @@ export default {
};

export const Default = {};

export const WithValidationErrors = {
args: {
steps: [
{
configuration: {
display: 'form',
components: [],
},
formDefinition: '',
index: 0,
name: 'Step 1',
internalName: '',
slug: 'step-1',
isApplicable: true,
loginRequired: false,
isReusable: false,
url: '',
isNew: false,
validationErrors: [['translations.nl.name', 'Computer says no']],
translations: {
nl: {
name: 'Stap 1',
saveText: '',
previousText: '',
nextText: '',
},
en: {
name: 'Step 1',
saveText: '',
previousText: '',
nextText: '',
},
},
},
],
},
};

0 comments on commit 3e30737

Please sign in to comment.