Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1803

Setting a textbox visible=false and invalidate its parent leading to "Failed to mount" error in Firefox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.3
    • 6.5.2
    • Browser Issue
    • Security Level: Jimmy
    • None
    • None

      Try the following code in FireFox.

      <div id="div">
      <textbox value="Jerry" width="150px" id="test" onOK="test.visible=false; div.invalidate();"/>
      </div>

      Hitting enter in the textbox will cause an error in FF as:

      Failed to mount: Component returned failure code: 0x80004005
      (NS_ERROR_FAILURE)
      [nsIDOMHTMLInputElement.setSelectionRange

            RaymondChao RaymondChao
            francishsiao francishsiao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: