close dropdown on component change

This commit is contained in:
Martin McKeaveney 2020-02-11 22:11:50 +00:00
parent f12c6452e4
commit 52d79236e8
1 changed files with 2 additions and 1 deletions

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
);