rippleRemoveListeners

Commons
stable

Remove all event listeners previously attached by the ripple directive from an element. Called on directive unmount or when the ripple is programmatically disabled.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

el
required
IRippleHtmlElement
The HTML element (extended with _ripple state) from which to remove the ripple event listeners. All pointer, keyboard, drag, and focus listeners are removed.

API

Return value

The value returned by this util.

No return value. All ripple listeners (mousedown, touchstart, touchend, touchmove, touchcancel, mouseup, mouseleave, keydown, keyup, dragstart, blur) are removed from the element.

Usage

Examples

Ready-to-paste usage snippets.

Clean up ripple listeners on unmount

typescript