fix(ui): add guard for no highlight labels (#11483)
parent
f4136d17f9
commit
c88f9186b3
|
@ -251,6 +251,10 @@ class LabelSelector extends Component<Props, State> {
|
|||
private handleKeyDown = (e: KeyboardEvent<HTMLInputElement>): void => {
|
||||
const {highlightedID} = this.state
|
||||
|
||||
if (!highlightedID) {
|
||||
return
|
||||
}
|
||||
|
||||
switch (e.key) {
|
||||
case 'Escape':
|
||||
e.currentTarget.blur()
|
||||
|
|
Loading…
Reference in New Issue