Skip to content

Commit

Permalink
Merge pull request #1201 from fortunatomaldonado/AUI-3222
Browse files Browse the repository at this point in the history
fix(alloy-ui): AUI-3222 Avoid calling selectionChange on invaild dates
  • Loading branch information
markocikos authored Apr 15, 2024
2 parents e2b54af + c19dcf1 commit 55ba9fd
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,12 @@ DatePickerNativeBase.prototype = {
parsed = instance._parseDateFromString(activeInput.val());
}

instance.fire(
'selectionChange', {
newSelection: parsed ? [parsed] : []
});
if (parsed) {
instance.fire(
'selectionChange', {
newSelection: [parsed]
});
}
},

/**
Expand Down

0 comments on commit 55ba9fd

Please sign in to comment.