Stops propagation of clicks when combined with data table header, which triggers data table sort function.

This commit is contained in:
Garrick Lee 2020-12-16 22:25:36 -08:00
commit 8b19106ae9

View file

@ -155,7 +155,9 @@
{inline && 'bx--dropdown--inline'} {inline && 'bx--dropdown--inline'}
{disabled && 'bx--dropdown--disabled'} {disabled && 'bx--dropdown--disabled'}
{light && 'bx--dropdown--light'}" {light && 'bx--dropdown--light'}"
on:click="{({ target }) => { on:click="{(e) => {
e.stopImmediatePropagation();
const { target } = e;
open = ref.contains(target) ? !open : false; open = ref.contains(target) ? !open : false;
}}" }}"
disabled="{disabled}" disabled="{disabled}"