1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

close dropdown on component change

This commit is contained in:
Martin McKeaveney 2020-02-11 22:11:50 +00:00
parent f12c6452e4
commit 52d79236e8

View file

@ -34,13 +34,14 @@
$: {
const binding = getBinding(value);
if (bindingPath !== binding.path) isOpen = false;
bindingPath = binding.path;
bindingFallbackValue = binding.fallback
? binding.fallback
: typeof value === "object"
? ""
: value;
const currentScreen = $store.screens.find(
({ name }) => name === $store.currentPreviewItem.name
);