Skip to content

Commit

Permalink
Merge pull request #35 from lougreenwood/fix-undefined-value
Browse files Browse the repository at this point in the history
Don't set the value of the editor if the value is undefined
  • Loading branch information
PoslinskiNet authored Jun 17, 2018
2 parents c02b72b + 45b87a3 commit bf06340
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addon/components/pell-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ export default Component.extend({
},

_setValue() {
if (this.get('pell').innerHTML !== this.get('value')) {
this.get('pell').innerHTML = this.get('value');
const val = this.get('value');
if (this.get('pell').innerHTML !== val && typeof val !== 'undefined') {
this.get('pell').innerHTML = val;
}
}
});

0 comments on commit bf06340

Please sign in to comment.