@haiilo/catalyst 10.11.1 → 10.12.0

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.
@@ -7953,6 +7953,7 @@ const CatDropdown = class {
7953
7953
  this.noResize = false;
7954
7954
  this.overflow = false;
7955
7955
  this.noInitialFocus = false;
7956
+ this.noReturnFocus = false;
7956
7957
  }
7957
7958
  clickHandler(event) {
7958
7959
  // we need to delay the initialization of the trigger until first
@@ -8011,7 +8012,7 @@ const CatDropdown = class {
8011
8012
  !event.composedPath().find(el => this.hasAttribute(el, 'data-dropdown-no-close')),
8012
8013
  onPostDeactivate: () => this.close(),
8013
8014
  onPostActivate: () => this.catOpen.emit(),
8014
- setReturnFocus: elem => this.trigger || elem,
8015
+ setReturnFocus: elem => (this.noReturnFocus ? false : this.trigger || elem),
8015
8016
  isKeyForward: event => {
8016
8017
  if ((this.arrowNavigation === 'horizontal' && event.key === 'ArrowRight') ||
8017
8018
  (this.arrowNavigation === 'vertical' && event.key === 'ArrowDown')) {
@@ -8053,7 +8054,7 @@ const CatDropdown = class {
8053
8054
  }, timeTransitionS);
8054
8055
  }
8055
8056
  render() {
8056
- return (index.h(index.Host, { key: 'd22c561b36b7beac2e0daec86f48e898375298ec' }, index.h("slot", { key: '5244cb2c2243f534615ea8f63e6c041650015b9d', name: "trigger", ref: el => (this.triggerSlot = el) }), index.h("div", { key: '74178de3565eed589167446ab7c13db9be8e62b2', id: this.contentId, class: { content: true, 'overflow-auto': !this.overflow }, ref: el => (this.content = el) }, index.h("slot", { key: 'f6d723898d2bd06e9404cc3467999c8f0e611cc3', name: "content" }))));
8057
+ return (index.h(index.Host, { key: '957334d18eeb54e13dc4f7799375fed4a7dd8633' }, index.h("slot", { key: 'd35b9f6668c6172eadfac887d917479af1d71139', name: "trigger", ref: el => (this.triggerSlot = el) }), index.h("div", { key: '1fe12d609149004507578dafd9f143100cbcd72b', id: this.contentId, class: { content: true, 'overflow-auto': !this.overflow }, ref: el => (this.content = el) }, index.h("slot", { key: 'f583e54f8084746a71743ad42aac221332742bb3', name: "content" }))));
8057
8058
  }
8058
8059
  get contentId() {
8059
8060
  return `cat-dropdown-${this.id}`;