@ng-matero/extensions 20.3.0 → 20.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -435,7 +435,7 @@ declare class MtxTimeInput implements OnDestroy {
435
435
  writePlaceholder(value: NumberInput): void;
436
436
  keyDownHandler(event: KeyboardEvent): void;
437
437
  /**
438
- * Prevent non number inputs in the inputElement with the exception of Enter/BackSpace
438
+ * Prevent non number inputs in the inputElement with the exception of Enter/Tab
439
439
  * @param event KeyboardEvent
440
440
  */
441
441
  keyPressHandler(event: KeyboardEvent): void;
@@ -1152,12 +1152,13 @@ class MtxTimeInput {
1152
1152
  }
1153
1153
  }
1154
1154
  /**
1155
- * Prevent non number inputs in the inputElement with the exception of Enter/BackSpace
1155
+ * Prevent non number inputs in the inputElement with the exception of Enter/Tab
1156
1156
  * @param event KeyboardEvent
1157
1157
  */
1158
1158
  keyPressHandler(event) {
1159
1159
  const key = event?.key ?? null;
1160
- if (isNaN(Number(key)) && key !== 'Enter') {
1160
+ // we should allow numbers and tab/enter
1161
+ if (isNaN(Number(key)) && !['Enter', 'Tab', 'Backspace'].includes(key)) {
1161
1162
  event.preventDefault();
1162
1163
  }
1163
1164
  }
@@ -1376,6 +1377,7 @@ class MtxTimeView {
1376
1377
  }
1377
1378
  else {
1378
1379
  this._userSelection.emit();
1380
+ this.selectedChange.emit(this._activeDate);
1379
1381
  }
1380
1382
  return;
1381
1383
  default: