Skip to content

Commit

Permalink
fix(event): always fire notify event when value changes #188
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 authored and jordanjones243 committed Jan 23, 2024
1 parent 6673d9b commit 9108e46
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/auro-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,8 @@ export class AuroDatePicker extends LitElement {
}

this.inputList[0].addEventListener('input', () => {
if (this.value !== this.inputList[0].value) {
this.value = this.inputList[0].value;
this.notifyValueChanged();
}
this.value = this.inputList[0].value;
this.notifyValueChanged();
});

this.inputList[0].addEventListener('auroInput-validated', () => {
Expand All @@ -407,10 +405,8 @@ export class AuroDatePicker extends LitElement {

if (this.inputList.length > 1) {
this.inputList[1].addEventListener('input', () => {
if (this.valueEnd !== this.inputList[1].value) {
this.valueEnd = this.inputList[1].value;
this.notifyValueChanged();
}
this.valueEnd = this.inputList[1].value;
this.notifyValueChanged();
});

this.inputList[1].addEventListener('auroInput-validated', () => {
Expand Down

0 comments on commit 9108e46

Please sign in to comment.