mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Fix required selector
argument to Component.$()
(#2844)
This commit is contained in:
@@ -81,7 +81,7 @@ export default abstract class Component<T extends ComponentAttrs = ComponentAttr
|
|||||||
* @returns the jQuery object for the DOM node
|
* @returns the jQuery object for the DOM node
|
||||||
* @final
|
* @final
|
||||||
*/
|
*/
|
||||||
protected $(selector: string): JQuery {
|
protected $(selector?: string): JQuery {
|
||||||
const $element = $(this.element) as JQuery<HTMLElement>;
|
const $element = $(this.element) as JQuery<HTMLElement>;
|
||||||
|
|
||||||
return selector ? $element.find(selector) : $element;
|
return selector ? $element.find(selector) : $element;
|
||||||
|
Reference in New Issue
Block a user