spo*_*rts 10 google-chrome angularjs angular-ui-bootstrap
有时,当我想快速选择输入的整个文本(在模态内)时,我开始从文本的末尾开始选择,然后向左移动鼠标,直到选择了整个文本,然后释放。
有时,此释放会发生在模态之外,因为鼠标移动很快。
描述运动的图片:
问题是当我在外面释放时,模态是关闭的。
问题:如何在外部释放时防止模式关闭?
我可以通过单击外部按钮关闭模式。但是对于发布事件并不满意。
我正在使用:
更新: 我已经创建了一个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的计算机,但该模式无法关闭。
我只更新了 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)
| 归档时间: |
|
| 查看次数: |
1013 次 |
| 最近记录: |