mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Fix required selector
argument to Component.$()
(#2844)
This commit is contained in:
parent
503c3fe640
commit
1d0d1c825a
|
@ -81,7 +81,7 @@ export default abstract class Component<T extends ComponentAttrs = ComponentAttr
|
|||
* @returns the jQuery object for the DOM node
|
||||
* @final
|
||||
*/
|
||||
protected $(selector: string): JQuery {
|
||||
protected $(selector?: string): JQuery {
|
||||
const $element = $(this.element) as JQuery<HTMLElement>;
|
||||
|
||||
return selector ? $element.find(selector) : $element;
|
||||
|
|
Loading…
Reference in New Issue
Block a user