• Vitaly Lipatov's avatar
    route-web-api: fix Enter triggering both check and bypass-add · 7bfbdebb
    Vitaly Lipatov authored
    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: 's avatarClaude Opus 4.7 (1M context) <noreply@anthropic.com>
    7bfbdebb
route-web-api.py 74.2 KB