perf: cancel unfinished updates in Selector
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
83102c5d4f
commit
7a59f81fb4
|
@ -270,6 +270,7 @@
|
|||
|
||||
$: {
|
||||
if (inputFocused) {
|
||||
updateOptions.cancel();
|
||||
updateOptions(inputValue, true);
|
||||
addressToLabels = {};
|
||||
}
|
||||
|
@ -278,6 +279,7 @@
|
|||
let addressToLabels: { [key: string]: string[] } = {};
|
||||
function onAddressResolved(address: string, ev: CustomEvent<string[]>) {
|
||||
addressToLabels[address] = ev.detail;
|
||||
updateOptions.cancel();
|
||||
updateOptions(inputValue, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue