Skip to content

Commit

Permalink
Merge pull request #203 from vijaytv/accept-nulls
Browse files Browse the repository at this point in the history
Accept Nulls as initial Values
  • Loading branch information
nosir authored Jul 23, 2017
2 parents 0ebfdad + 3a9b657 commit 2249a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/DefaultProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var DefaultProperties = {
target.rawValueTrimPrefix = !!opts.rawValueTrimPrefix;
target.copyDelimiter = !!opts.copyDelimiter;

target.initValue = opts.initValue === undefined ? '' : opts.initValue.toString();
target.initValue = opts.initValue !== undefined && opts.initValue !== null ? opts.initValue.toString() : '';

target.delimiter =
(opts.delimiter || opts.delimiter === '') ? opts.delimiter :
Expand Down

0 comments on commit 2249a15

Please sign in to comment.