Home > widget-integration > FilterRender > resetFilterOption

FilterRender.resetFilterOption() method

Resets a specific filter option Removes the filter from state, updates URL params, and triggers API refresh

Signature:

resetFilterOption(action: {
		key: string;
		from?: string;
	}, target?: EventTarget | null): void;

Parameters

Parameter

Type

Description

action

{ key: string; from?: string; }

Filter action containing the key to reset

target

EventTarget | null

(Optional)

Returns:

void