Skip to content

Commit

Permalink
fix(esl-share): fix inner ESLToggleableActionParams instances type
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Nov 8, 2024
1 parent b5260b9 commit ea8dd94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/esl-share/core/esl-share-popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {attr, bind, boolAttr, listen, memoize} from '../../esl-utils/decorators'
import {ESLShareButton} from './esl-share-button';
import {ESLShareConfig} from './esl-share-config';

import type {ESLTooltipActionParams} from '../../esl-tooltip/core/esl-tooltip';
import type {ESLPopupActionParams} from '../../esl-popup/core/esl-popup';
import type {ESLShareButtonConfig} from './esl-share-config';
import type {FocusFlowType} from '../../esl-utils/dom/focus';
import type {PositionType} from '../../esl-popup/core/esl-popup-position';
Expand All @@ -15,7 +15,7 @@ function stringifyButtonsList(btns: ESLShareButtonConfig[]): string {
return btns.map((btn) => btn.name).join(',');
}

export interface ESLSharePopupActionParams extends ESLTooltipActionParams {
export interface ESLSharePopupActionParams extends ESLPopupActionParams {
/** list of social networks or groups of them to display */
list?: string;
}
Expand Down Expand Up @@ -89,7 +89,7 @@ export class ESLSharePopup extends ESLPopup {
/** Sets initial state of the Tooltip */
protected override setInitialState(): void {}

public override onShow(params: ESLTooltipActionParams): void {
public override onShow(params: ESLSharePopupActionParams): void {
if (params.disableArrow) {
this.disableArrow = params.disableArrow;
}
Expand All @@ -105,7 +105,7 @@ export class ESLSharePopup extends ESLPopup {
}

/** Actions to execute on Tooltip hiding. */
public override onHide(params: ESLTooltipActionParams): void {
public override onHide(params: ESLSharePopupActionParams): void {
super.onHide(params);
this.parentNode === document.body && document.body.removeChild(this);
}
Expand Down

0 comments on commit ea8dd94

Please sign in to comment.