@ni/nimble-components 18.8.3 → 18.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1720,14 +1720,16 @@ const jc=ft`
1720
1720
  display: none;
1721
1721
  }
1722
1722
  `
1723
- class Uc extends yn{constructor(){super(...arguments),this.disabled=!1,this.startColumnCount=0}clickHandler(t){return t.stopImmediatePropagation(),!0}keydownHandler(t){if(t.defaultPrevented)return!1
1724
- if(t.key===Mr)t.stopImmediatePropagation()
1723
+ class Uc extends yn{constructor(){super(...arguments),this.disabled=!1,this.startColumnCount=0}clickHandler(t){return t.stopPropagation(),!0}keydownHandler(t){if(t.defaultPrevented)return!1
1724
+ if(t.key===Mr)t.stopPropagation()
1725
1725
  return!0}setAttribute(t,e){"tabindex"===t?this.anchor.setAttribute(t,e):super.setAttribute(t,e)}get tabIndex(){return this.anchor.tabIndex}set tabIndex(t){this.anchor.tabIndex=t}}t([nt({mode:"boolean"})],Uc.prototype,"disabled",void 0),t([f],Uc.prototype,"anchor",void 0),t([f],Uc.prototype,"startColumnCount",void 0)
1726
1726
  const Gc=Uc.compose({baseName:"anchor-menu-item",template:(t,e)=>G`
1727
1727
  <template
1728
1728
  role="menuitem"
1729
1729
  class="${t=>"number"==typeof t.startColumnCount?`indent-${t.startColumnCount}`:""}"
1730
1730
  aria-disabled="${t=>t.disabled}"
1731
+ @click="${(t,e)=>t.clickHandler(e.event)}"
1732
+ @keydown="${(t,e)=>t.keydownHandler(e.event)}"
1731
1733
  >
1732
1734
  <a
1733
1735
  ${_t("anchor")}
@@ -1739,8 +1741,6 @@ const Gc=Uc.compose({baseName:"anchor-menu-item",template:(t,e)=>G`
1739
1741
  rel="${t=>t.rel}"
1740
1742
  target="${t=>t.target}"
1741
1743
  type="${t=>t.type}"
1742
- @click="${(t,e)=>t.clickHandler(e.event)}"
1743
- @keydown="${(t,e)=>t.keydownHandler(e.event)}"
1744
1744
  >
1745
1745
  ${Nt(0,e)}
1746
1746
  <span class="content" part="content">