Skip to content

Commit e25855c

Browse files
committed
fix(dti): change place of isSameValue variable definition
1 parent 4a57253 commit e25855c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/date-time-input/date-time-input.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@ export default class IgcDateTimeInputComponent extends EventEmitterMixin<
609609

610610
protected handleBlur() {
611611
const isEmptyMask = this.maskedValue === this.emptyMask;
612-
const isSameValue = this._oldValue === this.value;
613612

614613
this.focused = false;
615614

@@ -626,6 +625,8 @@ export default class IgcDateTimeInputComponent extends EventEmitterMixin<
626625
this.updateMask();
627626
}
628627

628+
const isSameValue = this._oldValue === this.value;
629+
629630
if (!(this.readOnly || isSameValue)) {
630631
this.emitEvent('igcChange', { detail: this.value });
631632
}

0 commit comments

Comments
 (0)