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

JS bug - Failed to mount: Cannot read property 'defaultView' of null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.5.2
    • Component/s: ZHTML
    • Labels:
    • Environment:

      Google Chrome - 24.0.1312.52 m
      Firefox - 17.0.1

      Description

      Steps to recreate:
      1. Go to http://temp.zkfiddle.org:8080/t651/hjqomc/10/ (http://zkfiddle.org/sample/hjqomc/10-Failed-to-mount-Cannot-read-property-defaultView-of-null)
      2. Click to Show button.
      3. Close modal dialog with close button in title bar.
      4. Click to Show button again.
      5. Error console is shown.

      Chrome error message
      Failed to mount: Cannot read property 'defaultView' of null
      


      Firefox error message
      Failed to mount: elem.ownerDocument is null
      

      Problem is caused by hflex attributes in inner.zul file:

      inner.zul
      <zk>
        <window>
          Lorem ipsum dolor sit amet, consectetur adipiscing elit.
          <grid>
      	<columns>
                <column hflex="min">A</column>
                <column hflex="min">B</column>
                <column >C</column>
              </columns>
            <rows>
            	<row>
                <label>1</label>
                <label>2</label>
                <label>3</label>      
              </row>
              <row>
                <label>a</label>
                <label>b</label>
                <div>c</div>
              </row>
            </rows>
          </grid>
        </window>
      </zk>
      

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            sbglobesy sbglobesy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: