route-web-api: fix Enter triggering both check and bypass-add
The input field had two Enter handlers running in parallel: the inline
onkeydown calling checkDomain(), and an addEventListener calling
addEntry('bypass'). preventDefault() in the inline handler does not
cancel the second listener. Result: pressing Enter both checked the
domain AND added it to the bypass list, clearing the input before the
user could see the check results.
Drop the addEventListener block — Enter now only triggers checkDomain().
Adding to bypass/direct/geo remains via the explicit buttons.
Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment