« Return to Thread: Extra Click Event

Re: Extra Click Event

by pczurak :: Rate this Message:

Reply to Author | View in Thread

I've removed all of the unnecessary code so it will be easier to debug, but I am not sure where to look.  
I am still getting the second click event after I select any dropdown Item except the first one.

Can anyone help me?  I am very new to dojo so I am not sure where to start.


Thank You


To reproduce the problem:
Select any item from the dropdown box except the first one then click anywhere in the Window.


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>QueryReadStore Demo</title>
        <style type="text/css">
        @import "dojo-release-1.1.1/dijit/themes/tundra/tundra.css";
        @import "dojo-release-1.1.1/dojo/resources/dojo.css"
        </style>
       
        <script type="text/javascript" src="dojo-release-1.1.1/dojo/dojo.js" djConfig="isDebug: true, parseOnLoad: true"></script>
        <script type="text/javascript">
            dojo.require("dijit.form.FilteringSelect");
            dojo.require("dojox.data.QueryReadStore");

            dojo.provide("ComboBoxReadStore");
            dojo.declare(
                "ComboBoxReadStore",
                dojox.data.QueryReadStore,
                {
                }
            );
           
        function setVal2(val)
        {
                console.debug("Selected "+val);
                alert("val= " + val);
        }

        </script>
    </head>
    <body class="tundra">
        <div dojoType="ComboBoxReadStore" jsId="store"
             url="dojo-release-1.1.1/dojox/data/tests/stores/QueryReadStore.php"
             requestMethod="put"
             >
        </div>
        State: <input id="fs" dojoType="dijit.form.FilteringSelect" store="store" pageSize="15" OnChange="setVal2" style="width: 300px; font-size: 10pt;"/>
    </body>
</html>

 « Return to Thread: Extra Click Event