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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.2
    • Fix Version/s: 6.5.3
    • Component/s: Browser Issue
    • Security Level: Jimmy
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: