I can't seem to reproduce your issue; both versions work for me. Can you make sure that you are using compatible (eg. the latest) versions of WebSharper and WebSharper.UI.Next, and that your browser doesn't use a cached version of either?

By on 8/19/2015 5:22 AM ()

It build, run and works as expected. But in the developer console on Chrome/Mozilla, I get the following error and warning:

1
2
3
Warning: Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

Error: Uncaught Error: Name conflict: contains

Introducing a data-children-template remove both error and warning.

My version of WebSharper and UI.Next:

  • WebSharper 3.4.9.188
  • WebSharper.UI.Next 3.4.9.157
By on 8/19/2015 8:26 AM ()

I can confirm this using:

  • WebSharper 3.6.10.320
  • WebSharper.UI.Next 3.6.8.204

The following works:

1
2
3
<div id="main" data-children-template="Main">
        <div data-hole="Content"/>
</div>

This doesn't:

1
2
<div id="main" data-hole="Content">
</div>

An interesting side effect is that everything seems to work fine, despite the warning and the error, but KendoUI starts behaving erratically in a non-deterministic manner. I spent hours trying to understand what was wrong.

By on 3/16/2016 11:24 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper