1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

fix: Shopping List Label Dropdown Doesn't Save Correctly (#2361)

* only update items by label on refresh

* made changes more responsive

* fast re-order items when labels are re-ordered
This commit is contained in:
Michael Genson 2023-04-25 12:46:58 -05:00 committed by GitHub
parent fe17922bb8
commit 75698c531a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 14 deletions

View file

@ -138,6 +138,10 @@ export default defineComponent({
});
const edit = ref(false);
function toggleEdit(val = !edit.value) {
if (edit.value === val) {
return;
}
if (val) {
// update local copy of item with the current value
localListItem.value = props.value;