Hi Piotr,

I just tried to disable both components but components are still
intercepting the click and calling the function so the error is generated.
But I think although this could work, not seems to me like a final
solution, since I don't think users should need to disable components in an
item renderer to make IR default functionality to work.
Anyway thanks for the suggestion :)

2018-07-02 16:35 GMT+02:00 Piotr Zarzycki <piotrzarzyck...@gmail.com>:

> Hi Carlos,
>
> What has happened if children (in that case your icon and Label), are
> disabled ?
>
> Thanks,
> Piotr
>
> pon., 2 lip 2018 o 16:27 Carlos Rovira <carlosrov...@apache.org>
> napisaƂ(a):
>
> > Hi,
> >
> > what's the best way to handle a click event in a List when the Item
> > renderer has some components that can interfere in the click event?
> >
> > I have an icon and a Label in the item renderer and if I click on one of
> > those "event.target" is logically set to this components.
> >
> > How to make "event.target" always resolve to the item-renderer, even if I
> > click in the label or the icon.
> > If the label or the icon has a click event, then clicking on one of those
> > components should call it's own click handler, but if nothing is set up,
> a
> > click in any part of the renderer should call the list click event
> handler.
> >
> > In JS I can set pointer-events : none for sub components in item
> renderers
> > but does not seems the best way to handle this
> >
> > thanks
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>



-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to