IE 9 and IE 10 cannot enter text into input text boxes from time to time

后端 未结 11 1833
傲寒
傲寒 2020-12-05 13:59

There is a web page with an iframe inside. Sometimes, Input text box controls, inside the iframe, are locked/ freezed. Users cannot enter text into them. But the text box ca

11条回答
  •  醉梦人生
    2020-12-05 14:26

    This worked for me on IE11,

    • Cause of issue (aside from IE being stupid):
      • Focused input element is removed from display inside a iframe (css display property)
    • Issue:
      • Text input element can not be clicked on, you can still tab to it however
    • Workaround:
      • We need to focus() a known visible element before taking a input field out of display, so on the line before we take the display away from a input field we have the line: document.body.focus();

提交回复
热议问题