Hi Piotr, It's working great! :), I forget about event.preventDefault() completely! thanks! :)
Please take a look a two changes I made: 1.- the model.selected check -> Is that what you propose at the end of your response? 2.- I try to comment the last two lines here: COMPILE::JS public function clickHandler(event:Event):void { event.preventDefault(); selected = !selected; //input.checked = selected; //label.classList.toggle("is-checked", selected); } ...and is working ok in all browsers. Let me know if there's some problem I don't see. Thanks for solving this! Carlos 2017-01-26 0:54 GMT+01:00 piotrz <piotrzarzyck...@gmail.com>: > Carlos, > > I just fixed it. :) Take a look into my commit. Didn't find better > solution. > "preventDefault" and manuallly selection. Additionally cause of > "preventDefault" change event stopped working - That's why I'm also calling > it manually. > > Maybe we should consider: > > if (_selected != model.selected) > { > } > > 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-tp58696p58702.html > Sent from the Apache Flex Development mailing list archive at Nabble.com. > -- Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la prestación del servicio o información solicitados, teniendo usted derecho de acceso, rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación necesaria.