Skip to content

Modal makes the page scroll back when closing #3067

Closed
@StygianTraveler

Description

@StygianTraveler

Since version v2.0.0-rc.17, if you re-use a <b-modal> in multiple places on the page, when you close the modal, the page will scroll back to the position it was in when you opened that modal for the first time.

See: https://codepen.io/anon/pen/axpxwq

  1. Click the "1" button
  2. Close the modal
  3. Scroll down the page
  4. Click one of the other buttons
  5. Close the modal
  6. Note that the page scrolls back up to the first button

Tested on Windows on the latest Chrome and Firefox.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions