Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ export class ESLToggleableManager {
*/
protected onOutsideInteraction(e: Event, el: ESLToggleable): void {
if (!el.closeOnOutsideAction || !el.isOutsideAction(e)) return;
// Used 10ms delay to decrease priority of the request but positive due to iOS issue
el.hide({initiator: 'outsideaction', hideDelay: 10, event: e});
// Use a delay (10ms by default) to decrease the priority of the request (usually > 0 due to iOS specifics)
el.hide({initiator: 'outsideaction', hideDelay: el.OUTSIDE_ACTION_DELAY, event: e});
}

/** Queues delayed task of the focus management */
Expand Down
3 changes: 3 additions & 0 deletions packages/esl/src/esl-toggleable/core/esl-toggleable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export class ESLToggleable extends ESLBaseElement {
/** Event to dispatch when toggleable group has changed */
@prop('esl:change:group') public GROUP_CHANGED_EVENT: string;

/** Delay for outside actions to trigger hide. Used by {@link ESLToggleableManager} */
@prop(10) public OUTSIDE_ACTION_DELAY: number;

/**
* CSS class (supports {@link CSSClassUtils}) to add on the body element
* */
Expand Down
Loading