close dropdown on component change

This commit is contained in:
Martin McKeaveney 2020-02-11 22:11:50 +00:00
parent 175002d178
commit 67db93bb39
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@
$: { $: {
const binding = getBinding(value); const binding = getBinding(value);
if (bindingPath !== binding.path) isOpen = false;
bindingPath = binding.path; bindingPath = binding.path;
bindingFallbackValue = binding.fallback bindingFallbackValue = binding.fallback
? binding.fallback ? binding.fallback