@fluid-topics/ft-modal 1.3.32 → 1.3.34

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.
@@ -13,7 +13,6 @@ export declare class FtModal extends FtModal_base implements FtModalProperties {
13
13
  size: DesignSystemSize;
14
14
  constructor();
15
15
  protected render(): import("lit-html").TemplateResult<1>;
16
- private onKeyUp;
17
16
  protected onTriggerClick(e: MouseEvent): void;
18
17
  protected elementToFocusOnClose?: HTMLElement;
19
18
  private intersectionObserver;
package/build/ft-modal.js CHANGED
@@ -47,7 +47,7 @@ class FtModal extends withI18n(FtdsBase) {
47
47
  };
48
48
  return html `
49
49
  <div class="${classMap(classes)}" part="container">
50
- <slot @click=${this.onTriggerClick} @keyup=${this.onKeyUp} name="trigger">
50
+ <slot @click=${this.onTriggerClick} name="trigger">
51
51
  <ft-button part="button" icon="${ifDefined(this.buttonIcon)}" label="${this.buttonLabel}" ariaHasPopup="dialog">
52
52
  ${when(this.buttonIcon, () => nothing, () => this.buttonLabel)}
53
53
  </ft-button>
@@ -83,11 +83,6 @@ class FtModal extends withI18n(FtdsBase) {
83
83
  </div>
84
84
  `;
85
85
  }
86
- onKeyUp(e) {
87
- if (e.key === "Enter" || e.key === " ") {
88
- this.open(e.target);
89
- }
90
- }
91
86
  onTriggerClick(e) {
92
87
  this.open(e.target);
93
88
  }