Home > widget-integration > CartDrawerRecommendationController > setupVariantSelectHandlers

CartDrawerRecommendationController.setupVariantSelectHandlers() method

Setup change handlers for variant select dropdowns. Uses event delegation on the cart drawer container to avoid memory leaks. Updates the product item's data-variant-id when variant selection changes.

Signature:

protected setupVariantSelectHandlers(cartDrawer: HTMLElement): void;

Parameters

Parameter

Type

Description

cartDrawer

HTMLElement

The cart drawer element

Returns:

void