Skip to content

Commit

Permalink
fix: added more optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
YannicEl committed Jan 2, 2024
1 parent ca5e1a8 commit 2a2c500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/src/components/UField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const InputElement = () => {
if (inputType === 'radio' || inputType === 'checkbox') {
props.checked =
field.value.value === inputNode.value.props?.value ||
field.value.value?.includes(inputNode.value.props?.value);
field.value.value?.includes?.(inputNode.value.props?.value);
}
return h(inputNode.value, props);
Expand Down

0 comments on commit 2a2c500

Please sign in to comment.