为什么我有时候不能输入我的< input>在IE中? [英] Why can I sometimes not type into my <input> in IE?

查看:84
本文介绍了为什么我有时候不能输入我的< input>在IE中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,我定期无法在Internet Explorer上输入任何输入/ textareas。目前我主要使用IE9。

当我点击一个输入时,JS click处理程序(清空占位符文本)运行,并且应用活动的css。但是,游标不显示,我无法输入。如果我选择输入字段,然后开始输入,所有事情都会重新开始。



我有一些JS运行,但没有运行错误。我怀疑TinyMCE与它有关,但是当页面上没有编辑器时也会发生这种情况,所以似乎也不是这样。如果你没有答案,我很想知道在这里可能发生的事情,因为我有点难以理解,所以我可以更多地关注。

解决方案

我最终解决了这个问题。 TinyMCE是一个奇怪而讨厌的问题,TinyMCE在光标位于主窗口内时被破坏。修正是在它被破坏之前明确地集中注意力。


I'm having an issue where, periodically, I am unable to type into any input/textareas on Internet Explorer. I'm working primarily with IE9 at the moment.

When I click on an input, the JS click handler (which empties placeholder text) runs, and the active css is applied. However, the cursor does not appear and I can't type. If I tab to an input field, and start typing, everything starts working again.

I have a fair bit of JS running, but no errors running. I suspected TinyMCE had something to do with it, but it also happens when there are no editors on the page, so that doesn't seem to be it either. If you don't have an answer, I'd love an idea of what could be happening here that I could look into more, since I'm a bit stumped.

解决方案

I eventually solved this. It was a strange and nasty issue with TinyMCE, where TinyMCE was being destroyed while the cursor was inside the main window. Fix was to explicitly focus out before it gets destroyed.

这篇关于为什么我有时候不能输入我的< input>在IE中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆