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

@ -66,7 +66,7 @@
class:action-text={text}
{...$$restProps}
on:click
on:click={() => {
on:click|stopPropagation={() => {
isOpen = !isOpen;
dispatch(isOpen ? 'open' : 'close');
}}>