Skip to content

Commit

Permalink
fix: selectorobserver default debounce type
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Jan 15, 2025
1 parent 6e00171 commit 858d501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SelectorObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type SelectorOptionsCommon = {
continuous?: boolean;
/** Whether to debounce the listener to reduce calls to `querySelector` or `querySelectorAll` - set undefined or <=0 to disable (default) */
debounce?: number;
/** The edge type of the debouncer - default is "queuedImmediate" - refer to {@linkcode Debouncer} for more info */
/** The edge type of the debouncer - default is "immediate" - refer to {@linkcode Debouncer} for more info */
debounceType?: DebouncerType;
};

Expand Down Expand Up @@ -91,7 +91,7 @@ export class SelectorObserver {

this.customOptions = {
defaultDebounce: defaultDebounce ?? 0,
defaultDebounceType: defaultDebounceType ?? "queuedImmediate",
defaultDebounceType: defaultDebounceType ?? "immediate",
disableOnNoListeners: disableOnNoListeners ?? false,
enableOnAddListener: enableOnAddListener ?? true,
};
Expand Down

0 comments on commit 858d501

Please sign in to comment.