Jump to content
Search Community

Koloff

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Koloff

  1. Hi guys!

     

    I have the following problem: 

     

    There is a draggable with attached methods onPress and onRelease. The draggable component has a button child. When I click on the draggable but outside of the button both events get fired. But when i click on the button only the onPress event gets fired (you can check this in the browser console). Same result happens if I put an input as a child and click on it.

     

    Codepen: 

     

    I need a way to fire both onPress and onRelease events when I click on buttons and inputs that are children of the draggable component.

     

    Thanks in advance!

    See the Pen jqqyEQ by anon (@anon) on CodePen

×
×
  • Create New...