Skip to content

Commit

Permalink
refactor(igxMask): cleanup/streamline parsing and input handling
Browse files Browse the repository at this point in the history
- input parsing go through one method
- add drag and drop functionality
- set default value on mask prop
  • Loading branch information
jackofdiamond5 committed Feb 20, 2020
1 parent d4c72f9 commit 0ab1743
Show file tree
Hide file tree
Showing 7 changed files with 351 additions and 536 deletions.
9 changes: 8 additions & 1 deletion projects/igniteui-angular/src/lib/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,14 @@ export const enum KEYCODES {
RIGHT_ARROW = 39,
DOWN_ARROW = 40,
F2 = 113,
TAB = 9
TAB = 9,
CTRL = 17,
Z = 90,
Y = 89,
X = 88,
BACKSPACE = 8,
DELETE = 46,
INPUT_METHOD = 229
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,9 @@ describe('IgxDatePicker', () => {
const input = fixture.debugElement.query(By.directive(IgxInputDirective));
expect(input).toBeDefined();
datePicker.isSpinLoop = false;

input.nativeElement.focus();
UIInteractions.sendInput(input, '31-03-19');
fixture.detectChanges();
expect(input.nativeElement.value).toBe('31-03-19');

input.nativeElement.focus();
Expand Down
Loading

0 comments on commit 0ab1743

Please sign in to comment.