Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 1f6d1b2

Browse files
Splaktarmmalerba
authored andcommitted
fix(chips): md-chip-append-delay of 0 does not get converted to 300 (#11163)
Fixes #10408
1 parent 9ced357 commit 1f6d1b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/chips/js/chipsController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ MdChipsCtrl.prototype.init = function() {
190190

191191
this.deRegister.push(
192192
this.$attrs.$observe('mdChipAppendDelay', function(newValue) {
193-
ctrl.chipAppendDelay = parseInt(newValue) || DEFAULT_CHIP_APPEND_DELAY;
193+
var numberValue = parseInt(newValue);
194+
ctrl.chipAppendDelay = isNaN(numberValue) ? DEFAULT_CHIP_APPEND_DELAY : numberValue;
194195
})
195196
);
196197
};

0 commit comments

Comments
 (0)