Skip to content

Commit

Permalink
fix(alloy-ui): AUI-3222 Avoid calling selectionChange when parsed dat…
Browse files Browse the repository at this point in the history
…e is not valid
  • Loading branch information
fortunatomaldonado committed Apr 10, 2024
1 parent e2b54af commit c19dcf1
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 c19dcf1

Please sign in to comment.