Commit e396d05
Fix school combobox: use activeElement not last visible input
Using .last on input:visible picked unrelated form fields (name/email).
After clicking a combobox, the browser focuses the inner search input —
use document.activeElement to target it precisely, then fall through to
the fallback-terms logic ("British Columbia", "Columbia", etc.).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 30bd196 commit e396d05
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1956 | 1956 | | |
1957 | 1957 | | |
1958 | 1958 | | |
1959 | | - | |
1960 | | - | |
| 1959 | + | |
| 1960 | + | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
1966 | 1969 | | |
1967 | 1970 | | |
1968 | 1971 | | |
| |||
0 commit comments