(el: HTMLElement, ignoreList?: string[])
| 183 | * Use this in instances where we manually specify aria attributes on the `<Host>` element. |
| 184 | */ |
| 185 | export const inheritAriaAttributes = (el: HTMLElement, ignoreList?: string[]) => { |
| 186 | let attributesToInherit = ariaAttributes; |
| 187 | if (ignoreList && ignoreList.length > 0) { |
| 188 | attributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr)); |
| 189 | } |
| 190 | return inheritAttributes(el, attributesToInherit); |
| 191 | }; |
| 192 | |
| 193 | export const addEventListener = (el: any, eventName: string, callback: any, opts?: any) => { |
| 194 | return el.addEventListener(eventName, callback, opts); |
no test coverage detected