Implements collapsed select rendering, dropdown overlay with optgroup/disabled support, click interaction (open/close/select), form submission, and Escape-to-close. Code review fixed: layout invalidation on selection change, select_states threading through fast paths, Escape key handling, form reset for selects, and added integration tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
543 B
HTML
26 lines
543 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><title>Select Collapsed States</title></head>
|
|
<body>
|
|
<select name="default">
|
|
<option>First</option>
|
|
<option>Second</option>
|
|
<option>Third</option>
|
|
</select>
|
|
<select name="preselected">
|
|
<option>Alpha</option>
|
|
<option selected>Beta</option>
|
|
<option>Gamma</option>
|
|
</select>
|
|
<select name="grouped">
|
|
<optgroup label="Fruits">
|
|
<option>Apple</option>
|
|
<option selected>Banana</option>
|
|
</optgroup>
|
|
<optgroup label="Vegetables">
|
|
<option>Carrot</option>
|
|
</optgroup>
|
|
</select>
|
|
</body>
|
|
</html>
|