Chrome更新后在模态外部释放光标时,模态关闭(angularjs和bootstrap-ui)

spo*_*rts 10 google-chrome angularjs angular-ui-bootstrap

有时,当我想快速选择输入的整个文本(在模态内)时,我开始从文本的末尾开始选择,然后向左移动鼠标,直到选择了整个文本,然后释放

有时,此释放会发生在模态之外,因为鼠标移动很快。

描述运动的图片:

描述发布的图片

问题是当我在外面释放时,模态是关闭的。

问题:如何在外部释放时防止模式关闭?

我可以通过单击外部按钮关闭模式。但是对于发布事件并不满意。

我正在使用:

  • angularjs 1.5.8
  • angular-bootstrap 2.5.0(aka bootstrap-ui
  • 引导程序3.3.7(仅CSS而不是js,因为js由上述内容提供)

更新: 我已经创建了一个plunkr和一个GIF:https ://plnkr.co/edit/mxDLAdnrQ4p0KKyw?p = info

<div class="modal-body">
  <div class="form-group">
    <label for="">Foo</label>
    <input type="text" class="form-control input-sm" ng-model="foo">

    <p>Do this: select the text from right to left and release the mouse outside the modal.</p>
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

GIF:

释放到外部时模态是关闭的

更新2

我有新信息!这是在上次Goole Chrome更新之后开始的我尝试使用另一台装有旧版Chrome的计算机,但该模式无法关闭。

Car*_*ino 2

我只更新了 bootstrap.js 和 bootstrap.min.js 中引用“Modal.js”的代码

更正版本:

 * Bootstrap: modal.js v3.4.1
 * https://getbootstrap.com/docs/3.4/javascript/#modals
Run Code Online (Sandbox Code Playgroud)

bootstrap.js 打印