When an element containing app-header-layout is removed and added back to the DOM the app-headerthreshold-triggered attribute is not reset even though app-header-layout is scrolled all the way to the top.
Open the page in a web browser notice that the header image is visible - thresholdTriggered is false. As you start scrolling it will hide thresholdTriggered is true. Scroll to the bottom and press the "NEXT PAGE" button. Noew page will be created and work the same way. Do it again and now the page comes up without the header image.
Description
When an element containing
app-header-layout
is removed and added back to the DOM theapp-header
threshold-triggered
attribute is not reset even though app-header-layout is scrolled all the way to the top.Expected outcome
thresholdTriggered is false
Actual outcome
thresholdTriggered is true
Live Demo
https://jsbin.com/bopuhozupa
Steps to reproduce
Open the page in a web browser notice that the header image is visible -
thresholdTriggered is false
. As you start scrolling it will hidethresholdTriggered is true
. Scroll to the bottom and press the "NEXT PAGE" button. Noew page will be created and work the same way. Do it again and now the page comes up without the header image.Browsers Affected