Skip to content

Conversation

@geozaur
Copy link

@geozaur geozaur commented Jul 27, 2019

Fixes for the add app page:

  • scroll to top on app submit;
  • clear form on success;
  • updated custom messages styling;

@aniri aniri requested review from aniri and lrdTnc July 28, 2019 16:33
window.requestAnimationFrame(scrollSmoothly);
window.scrollTo(0, currentScroll - (currentScroll / 8));
}
})();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a little bit hacky. can you use scrollIntoView instead? there's neat example in approve-app.component (line 85) that method could be extracted overall and used anywhere we need it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@y0rg1 can you please check? thanks 😄

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lrdTnc I'm not entirely sure how to implement this cleanly using scrollIntoView because the navbar component (or any other top page component) is outside add-app's hierarchy.
I went with this approach in order to enable smooth scrolling on Edge and IE browsers as well.

@lrdTnc lrdTnc mentioned this pull request Oct 14, 2019
@lrdTnc
Copy link
Contributor

lrdTnc commented Oct 14, 2019

continued this here #132

@lrdTnc lrdTnc closed this Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants