onRuleClick function

Last updated: 2026-03-01T23:25:47.108Z

Metrics

LOC: 9 Complexity: 2 Params: 1

Signature

onRuleClick(e: Event): : void

Source Code

function onRuleClick(e: Event): void {
  e.preventDefault();
  e.stopPropagation();
  if (!currentTarget) return;
  handleRuleButtonClick(currentTarget, () => {
    removeIcon();
    currentTarget = null;
  });
}

Dependencies (Outgoing)

graph LR onRuleClick["onRuleClick"] handleRuleButtonClick["handleRuleButtonClick"] removeIcon["removeIcon"] onRuleClick -->|calls| handleRuleButtonClick onRuleClick -->|calls| removeIcon style onRuleClick fill:#dbeafe,stroke:#2563eb,stroke-width:2px click onRuleClick "cb92024bc07cbd57.html" click handleRuleButtonClick "302ac6e6209ebb8e.html" click removeIcon "8711122051526789.html"
TargetType
handleRuleButtonClick calls
removeIcon calls

No incoming dependencies.