You can use DataBindingExample for the Flex/HTML/RadioButton. I'm still
clueless as to why a browser event is being sent to the right place. The
MDLExample, while large, does isolate the RadioButtons pretty nicely. Of
course, there's lots of stuff wrapped around them which may be
contributing to what's being seen.

—peter

On 2/1/17, 11:33 AM, "Alex Harui" <aha...@adobe.com> wrote:

>Do we have a really simple test case so we don't have to wade through the
>MDLExample?
>
>-Alex
>
>On 2/1/17, 6:16 AM, "Peter Ent" <p...@adobe.com> wrote:
>
>>I need to look into this more. My memory isn't what it used to be, so I
>>do
>>not recall how this was taking place in CreateJS (React is a very
>>different thing), but that was also before the refactor wrapping Sprite.
>>
>>The FlexJS/HTML/RadioButton JS code has no explicit event listener
>>attached to it. This is the embarrassing/mystery/memory part. When you
>>click on it, BrowserEvent appears and handles the event and pairs it up
>>with the RadioButton that was clicked. I don't know how this happens off
>>the top of my head.
>>
>>In MDL, the events seem pretty straightforward. You've added a click
>>handler and that gets called two times: once for the <input> element and
>>once for the <span> (as target). I'm not 100% sure why that happens from
>>the google point of view, but I assume that since the MDL "radio" is
>>composed of several elements, you are getting an event per element. Since
>>some of the <span> element do not have text nodes, I am guessing they do
>>not generate events.
>>
>>I will add an explicit event handler to the FlexJS/HTML/RadioButton and
>>see what happens and report back. Hopefully I'll have my memory jogged
>>enough to figure out how BrowserEvent is coming into play here. I have to
>>tell you, that having written this stuff and not remembering how it
>>works,
>>is distressing!
>>
>>‹peter
>>
>>
>>On 1/31/17, 6:32 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
>><carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com>
>>wrote:
>>
>>>Peter,
>>>
>>>to complement what Piotr said. MDL uses the js and css libs from google
>>>so
>>>as you click on the object I'm sure MDL handles it's own click (I assume
>>>that but didn't go low level to check it since we are creating MDL based
>>>on
>>>the structure they suggest, so with the tools they give). I think
>>>something
>>>like this should happen with CreateJS or ReactJS when you did your
>>>FlexJS
>>>integration?
>>>
>>>
>>>2017-02-01 0:06 GMT+01:00 piotrz <piotrzarzyck...@gmail.com>:
>>>
>>>> Peter,
>>>>
>>>> MDL RadioButton isn't get BrowserEvent. When I debugged it in the
>>>>browser
>>>> and had event listener on "label" I got two times this BrowserEvent -
>>>>I
>>>> didn't fully understand your last sentence.
>>>>
>>>> What about native FlexJS RadioButton ? How it is working when you
>>>> addEventListener ?
>>>>
>>>> Piotr
>>>>
>>>>
>>>>
>>>> -----
>>>> Apache Flex PMC
>>>> piotrzarzyck...@gmail.com
>>>> --
>>>> View this message in context: http://apache-flex-
>>>> development.2333347.n4.nabble.com/FlexJS-Click-Event-Att-
>>>> 
>>>>Alex-and-Peter-was-Re-FlexJS-RadioButton-click-event-tp58835p58878.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.
>>
>

Reply via email to