pikaday-angular icon indicating copy to clipboard operation
pikaday-angular copied to clipboard

dynamic id for container

Open ronlanger opened this issue 10 years ago • 1 comments

it doesn't find the element if I use a dynamic id for the container:

example: pika attr: container="option{{ $index }}Container" container attr: id="option{{ $index }}Container"

ronlanger avatar Sep 07 '15 14:09 ronlanger

+1, same issue when using the trigger option.

The ID value on the trigger has not been resolved before the call to "document.getElementById(value);" so the return value is null.

A quick fix might be to wrap the initialization in $timeout to wait until the digest loop is completed or accept an element being passed in directly.

rfournioux-netc avatar Mar 10 '16 13:03 rfournioux-netc