fix(ui-shell): stop propagation when clicking header action button

This commit is contained in:
Eric Liu 2020-08-01 15:36:38 -07:00
commit 4d93396d01
2 changed files with 5 additions and 3 deletions

View file

@ -109,6 +109,8 @@
focusable: false,
style: undefined,
};
let isOpen = !true;
</script>
{#if story === 'header'}
@ -169,8 +171,8 @@
<HeaderUtilities>
<HeaderAction
type="Switcher"
icon={iSwitcher}
isOpen
icon={isOpen ? iAccount : iSwitcher}
bind:isOpen
on:open={() => {
console.log('on:open');
}}