Skip to content

Commit

Permalink
fix: drupal module returns boolean values as integers
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrsky committed Dec 10, 2019
1 parent 7262b75 commit 88d23e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export function useWebformElement<T extends {}>(element: WebformElement, options

// Convert inputProps to correct type.
Object.assign(inputProps, {
required: inputProps.required === 'true'
required: inputProps.required === '1' || inputProps.required === 'true'
})

if (options) {
Expand Down

0 comments on commit 88d23e8

Please sign in to comment.