Skip to content

Commit

Permalink
fix: element being set if null
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenrui committed Nov 16, 2023
1 parent 46ebf41 commit c0ee54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default class Entity {

if (valueExpr) {
const newValue = eval(valueExpr);
if (this.element.value !== newValue)
if (this.element.value !== newValue && newValue != null)
this.element.value = newValue;
}

Expand Down

0 comments on commit c0ee54c

Please sign in to comment.