I'm writing a Win Universal App (JS) and have implemented a Flyout. The Flyout is accessed via a button in a toolbar. Code for flyout -
<button data-win-control="WinJS.UI.Command" data-win-options="{
id:'cmdChangeCategory',
label:'Change Category',
section:'selection',
type:'flyout',
icon:'video',
tooltip:'Change Category',
flyout:'changeCatFlyout'}"></button>
Flyout div -
<div id="changeCatFlyout" data-win-control="WinJS.UI.Flyout">
<label for="ddlChangeCategory" style="display:block;clear:both;margin-top:10px">Select Category</label>
<select id="ddlCategoryChange"></select>
<button id="btnChangeCategory" title="Change" style="display:block;clear:both;margin-top:10px">Change</button>
</div>
The flyout displays when the button is clicked and looks fine, the issue is that the controls inside the flyout cannot be interacted with (the dropdown is populated through JS). Whenever I try and click the dropdown or the button, the flyout simply closes. I've tried making the flyout div a direct child of the body as I saw this elsewhere as a possible solution.
Any ideas???
I should add trying this in the WinJS Playground works - to my frustration!!