Debugging onFocus event using Chrome Developer Tools? Can't return focus after break point

前端 未结 3 2018
孤独总比滥情好
孤独总比滥情好 2021-02-07 07:16

I\'m trying to debug a JavaScript onFocus event attached to a bunch of text boxes on a page. The bug occurs when selecting a text box and then tabbing to the next

3条回答
  •  逝去的感伤
    2021-02-07 08:06

    You are right, Chrome DevTools receive focus and do not restore it when you switch back to the debugged page. Feel free to file a bug at http://new.crbug.com (make sure you start the summary with "DevTools: " so that the bug can be assigned to the appropriate team as quickly as possible.)

    On a side note, console.log() is a slightly better alternative to alert() as it allows formatted output.

提交回复
热议问题