Hi Carlos,

You basically have input inside label and this second click is from input.
Fix for that in pure JS world would be addEventListener to input only, but
in our FlexJS world it won't work.[1]

Inside component I'm adding listener to input - It will be called once, but
outside component click listener is being added to "label".

Iniside component - With that listener is called once:
input.addEventListener("click", clickHandler, false);
 COMPILE::JS
        public function clickHandler(event:Event):void
        {
            selected = !selected;
        }

BUT, outside component:
<mdl:IconToggle dataMdlFor="mdlBoldIcon" click="onClickHandler(event)">

Listener is being added to Label. Will investigate farther. 

[1]
http://stackoverflow.com/questions/10819699/simple-click-on-labels-makes-double-click

Piotr



-----
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-IconToggle-duplicates-click-event-tp58696p58698.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to