use pikaday element instead of child element when comparing against trigger element