Chrome (maybe Safari?) fires “blur” twice on input fields when browser loses focus

前端 未结 7 2093

Here is an interesting jsfiddle.

In Firefox:

  1. Run the fiddle
  2. Click in text input
  3. Click somewhere else. Should say \"1 bl
7条回答
  •  天命终不由人
    2020-12-28 16:23

    This is confirmed Chrome bug. See the Chromium Issue Tracker

    The workaround is in the accepted answer.

提交回复
热议问题