Skip to content

how to remove the Dom ".nicescroll-rails" #10

Description

@LunaYJ

Hi there, u see I made a SPA with Angular. and in my web , I only use niceScroll in profile Page. but now I meet a problem. When I entry profile page, then I back to index page, I check in Chrome I find ".nicescroll-rails" this DOM notremoved, and then I entry profile page again, a new ".nicescroll-rails" Dom was created.... so I checked Elements with Chrome Dev Tools, I can see 4 '.nicescroll-rails' Doms, 2 of them Display are None, and the other 2 are Block.

so If I entry profile page many many times , and '.nicescroll-rails' Dom will be created many many

So I wanna Know, What can I do? and How can I set, when I leave profile page, '.nicescroll-rails' will remove, or when I entry profile page, '.nicescroll-rails' only be created one

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions