File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,6 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
498
498
_keydown ( event : KeyboardEvent ) {
499
499
const target = event . target as HTMLElement ;
500
500
501
- console . log ( '_keydown:' , this . _focusLastChipOnBackspace ) ;
502
501
// After input became empty and backspace was pressed again, focus last chip
503
502
if ( this . _isInputElement ( target ) ) {
504
503
if ( event . keyCode === BACKSPACE && this . _focusLastChipOnBackspace ) {
@@ -530,13 +529,13 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
530
529
*/
531
530
_keyup ( event : KeyboardEvent ) {
532
531
const target = event . target as HTMLElement ;
533
- console . log ( '_keyup:' , this . _focusLastChipOnBackspace ) ;
532
+
534
533
// Allow user to move focus to chips next time he presses backspace
535
534
if (
536
535
! this . _focusLastChipOnBackspace &&
537
- event . keyCode === BACKSPACE && this . _isInputEmpty ( target )
536
+ event . keyCode === BACKSPACE &&
537
+ this . _isInputEmpty ( target )
538
538
) {
539
- console . log ( 'change to focus last on backspace:' , this . _focusLastChipOnBackspace ) ;
540
539
this . _focusLastChipOnBackspace = true ;
541
540
event . preventDefault ( ) ;
542
541
}
You can’t perform that action at this time.
0 commit comments