handleClear function
Last updated: 2026-03-05T20:45:07.036Z
Metrics
LOC: 12
Complexity: 3
Params: 1
Signature
handleClear(step: FlowStep): : StepResult
Source Code
function handleClear(step: FlowStep): StepResult {
const el = requireElement(step);
ensureVisible(el);
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) {
el.value = "";
el.dispatchEvent(new Event("input", { bubbles: true }));
el.dispatchEvent(new Event("change", { bubbles: true }));
}
return { status: "success" };
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| requireElement | calls |
| ensureVisible | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| executeStep | calls |