mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix new card sort order not reacting to changes in gather order (#4039)
This commit is contained in:
parent
7a8b4a193f
commit
14b8a8ad0d
1 changed files with 5 additions and 10 deletions
|
@ -20,16 +20,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
export let disabledChoices: T[] = [];
|
export let disabledChoices: T[] = [];
|
||||||
|
|
||||||
$: label = choices.find((c) => c.value === value)?.label;
|
$: label = choices.find((c) => c.value === value)?.label;
|
||||||
</script>
|
$: parser = (item) => ({
|
||||||
|
|
||||||
<Select
|
|
||||||
bind:value
|
|
||||||
{label}
|
|
||||||
{disabled}
|
|
||||||
list={choices}
|
|
||||||
parser={(item) => ({
|
|
||||||
content: item.label,
|
content: item.label,
|
||||||
value: item.value,
|
value: item.value,
|
||||||
disabled: disabledChoices.includes(item.value),
|
disabled: disabledChoices.includes(item.value),
|
||||||
})}
|
});
|
||||||
/>
|
</script>
|
||||||
|
|
||||||
|
<Select bind:value {label} {disabled} list={choices} {parser} />
|
||||||
|
|
Loading…
Reference in a new issue