fix switch statment
This commit is contained in:
parent
7e0ff7bf76
commit
73819c9d1d
@ -61,6 +61,16 @@ class UserList extends Component {
|
||||
element.childNodes[this.counter].focus();
|
||||
this.counter++;
|
||||
break;
|
||||
case 'up':
|
||||
this.counter--;
|
||||
element.childNodes[this.counter].tabIndex = 0;
|
||||
element.childNodes[this.counter].focus();
|
||||
break;
|
||||
case 'upLoopUp':
|
||||
case 'upLoopDown':
|
||||
this.counter = count - 1;
|
||||
select();
|
||||
break;
|
||||
case 'downLoopDown':
|
||||
this.counter = -1;
|
||||
select();
|
||||
@ -69,20 +79,6 @@ class UserList extends Component {
|
||||
this.counter = 1;
|
||||
select();
|
||||
break;
|
||||
case 'up':
|
||||
this.counter--;
|
||||
element.childNodes[this.counter].tabIndex = 0;
|
||||
element.childNodes[this.counter].focus();
|
||||
break;
|
||||
case 'upLoopUp':
|
||||
this.counter = count - 1;
|
||||
select();
|
||||
break;
|
||||
case 'upLoopDown':
|
||||
this.counter = count - 1;
|
||||
element.childNodes[this.counter].tabIndex = 0;
|
||||
element.childNodes[this.counter].focus();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user