AnimatedHeader icon indicating copy to clipboard operation
AnimatedHeader copied to clipboard

header element not yet available when using amd and angular

Open micahblu opened this issue 10 years ago • 0 comments

The header is queried before angular appends the directive html to the dom, this could be circumvented with a quick check of the header var in the page scroll function and a re-query if necessary. like so:

header = header || document.querySelector( '.cbp-af-header' );

Not sure if this issue is common enough for you guys to make the change but if you'd like I could submit a pr with the fix, it would help me not have to re write the fix when I update :)

micahblu avatar Sep 16 '15 03:09 micahblu