Skip to content

Commit

Permalink
FIO-5053: fixed an issue where empty value with html5 widget type not… (
Browse files Browse the repository at this point in the history
formio#4708)

* FIO-5053: fixed an issue where empty value with html5 widget type not showing on pdf download

* Code refactoring
  • Loading branch information
AlexanderYakubovskiy authored May 18, 2022
1 parent 9aab5c4 commit 2575da4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,9 @@ export default class SelectComponent extends Field {
}

isEmpty(value = this.dataValue) {
if (_.isEqual(value, {})) {
return false;
}
return super.isEmpty(value) || value === undefined;
}

Expand Down

0 comments on commit 2575da4

Please sign in to comment.