You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The options element in the focus-trap.ts constructor below should either be:
a parameter not named options as it is a single option, and it should be a default parameter. public constructor(element: HTMLElement, focusableElements: string = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])') {
Make public constructor(element: HTMLElement, { focusableElements = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'}) {
Issue description
The options element in the focus-trap.ts constructor below should either be:
optionsas it is a single option, and it should be a default parameter.public constructor(element: HTMLElement, focusableElements: string = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])') {public constructor(element: HTMLElement, { focusableElements = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'}) {Code: