Skip to content

Commit 47f0b43

Browse files
committed
Remove log prints
1 parent 1147652 commit 47f0b43

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/material/chips/chip-list.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
498498
_keydown(event: KeyboardEvent) {
499499
const target = event.target as HTMLElement;
500500

501-
console.log('_keydown:', this._focusLastChipOnBackspace);
502501
// After input became empty and backspace was pressed again, focus last chip
503502
if (this._isInputElement(target)) {
504503
if (event.keyCode === BACKSPACE && this._focusLastChipOnBackspace) {
@@ -530,13 +529,13 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
530529
*/
531530
_keyup(event: KeyboardEvent) {
532531
const target = event.target as HTMLElement;
533-
console.log('_keyup:', this._focusLastChipOnBackspace);
532+
534533
// Allow user to move focus to chips next time he presses backspace
535534
if (
536535
!this._focusLastChipOnBackspace &&
537-
event.keyCode === BACKSPACE && this._isInputEmpty(target)
536+
event.keyCode === BACKSPACE &&
537+
this._isInputEmpty(target)
538538
) {
539-
console.log('change to focus last on backspace:', this._focusLastChipOnBackspace);
540539
this._focusLastChipOnBackspace = true;
541540
event.preventDefault();
542541
}

0 commit comments

Comments
 (0)