We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f9bed8 commit 8483533Copy full SHA for 8483533
src/Component.ts
@@ -56,7 +56,7 @@ export class Component<T extends HTMLElement = HTMLElement> extends BaseComponen
56
* @param selectors
57
* @typeParam T Component element type
58
*/
59
- public select<T extends HTMLElement>(selectors: string): Component<T> | null {
+ public select<T extends HTMLElement = HTMLElement>(selectors: string): Component<T> | null {
60
const element = this.element.querySelector<T>(selectors);
61
if (element == null) return null;
62
return new Component<T>(element);
0 commit comments