Closed paolorr closed 7 years ago
Hi Paolo, I don't know why is the first example not working, everything seems OK, but only the datetime itself can be tappable.
The second one is better, it mimics the behaviour of native inputs, they are focused/opened even when tapped on the label. If you don't want that, you need to investigate the first example more.
Hi Kate, I don't know too much of angular, so I can't debug that in depth. I noticed that the link property on the directive is called 2 times, one for each example, and the click event is attatched. Im stuck there, don't know why the second click event is not called.
BTW, I never noticed the behavior when clicking on the label. I just checked with atext input and works like that :) So, forget this issue....
I tried to attach the directive to a list item span but nothing happens
If I move the directive and ng-model to the list item it works but also popus if i click on the label