Exception when repetitively showing flyout that is still open RRS feed

  • Question

  • In my app bar I have an "about" button that shows a flyout when its clicked.

    When the flyout is open and I click quickly on the button I get eventually this exception:

    "Invalid argument: Showing flyout requires a DOM element as its first parameter." in control.js(4413).

    Is that a bug, or am I doing it wrong?

    <button class="win-command" id="about" aria-haspopup="true">
                    <span class="win-commandicon win-large">?</span><span class="win-label">About</span>
    <div id="aboutFlyout" data-win-control="WinJS.UI.Flyout" aria-label="{About}">
                        <img src="images/logo_glow.png" alt="about image"/>
                        <p><center>This is a very early preview version for Windows 8.</center></p>
                    <button onclick="WinJS.UI.getControl(aboutFlyout).hide()">Looks awesome!</button>

    Thursday, November 17, 2011 9:33 AM


All replies