HomePhorge

rPad7560b36491

AphrontFormPolicyControl: Reuse existing control ID

Summary:
Do not unconditionally create a new ID which breaks the accessibility label.

Parent `AphrontFormControl::render()` set an ID via `$this->setID(celerity_generate_unique_node_id())` and then calls `$this->renderInput()` on its subclass `AphrontFormPolicyControl` which unconditionally runs `$control_id = celerity_generate_unique_node_id()` to assign another ID and then does `'id' => $control_id`.
This breaks accessibility (AphrontFormControl's…
Repository: rP Phorge
Author: aklapper
Commit Date: Mar 23 2025