Skip to main content

blockly > utils > aria > clearState

utils.aria.clearState() function

Clears the specified ARIA state by removing any related attributes from the specified element that have been set using setState().

Signature:

export declare function clearState(element: Element, stateName: State): void;

Parameters

Parameter

Type

Description

element

Element

The element whose ARIA state may be changed.

stateName

State

The state to clear from the provided element.

Returns:

void