@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
7 lines (6 loc) • 480 B
JavaScript
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
function t(t){const e=new MouseEvent("click",{bubbles:!0});return t.dispatchEvent(e),e}function e(t){return t.currentTarget===t.target&&(t.composedPath()[0]===t.target&&(!t.target.disabled&&!function(t){const e=n;e&&(t.preventDefault(),t.stopImmediatePropagation());return async function(){n=!0,await null,n=!1}(),e}(t)))}let n=!1;export{t as dispatchActivationClick,e as isActivationClick};