You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our DetailView component we use the document.querySelector() function to scroll to the top of the wrapper div. This usage created some problems when we converted to typescript as we then needed to check for the existence of such a HTML element before calling .scrollTop on it. @toolness suggested that we could actually make a helper function that repeats this logic in a more abstract way so we can use it around our codebase.
The text was updated successfully, but these errors were encountered:
In our DetailView component we use the
document.querySelector()
function to scroll to the top of the wrapper div. This usage created some problems when we converted to typescript as we then needed to check for the existence of such a HTML element before calling.scrollTop
on it. @toolness suggested that we could actually make a helper function that repeats this logic in a more abstract way so we can use it around our codebase.The text was updated successfully, but these errors were encountered: