Skip to content

Commit

Permalink
fix(fabric.IText) wrong typeof syntax (#8023)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur authored Jun 25, 2022
1 parent 351b9e8 commit b435fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixins/itext_key_behavior.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
this[prop] += direction === 'Left' ? -1 : 1;
return true;
}
if (typeof newValue !== undefined && this[prop] !== newValue) {
if (typeof newValue !== 'undefined' && this[prop] !== newValue) {
this[prop] = newValue;
return true;
}
Expand Down

0 comments on commit b435fff

Please sign in to comment.