fix: prevent backspace in profile selection

This commit is contained in:
Clem
2023-01-30 19:46:32 +01:00
committed by Eugene
parent 1738caa4a8
commit 9e5c9ede44

View File

@@ -47,6 +47,7 @@ export class SelectorModalComponent<T> {
this.close()
}
if (event.key === 'Backspace' && this.canEditSelected()) {
event.preventDefault()
this.filter = this.filteredOptions[this.selectedIndex].freeInputEquivalent!
this.onFilterChange()
}