Webform Popup Modal dialog when closed, the page scrolls to the bottom

Created on 18 December 2023, 11 months ago

Problem/Motivation

I have created a webform popup using the webform dialog modal. This is activated when clicked on a fixed button which resides in the footer. On closing this webform, the page scrolls to the bottom of the page. I would like the page to not scroll and stay in the same location when the popup was triggered.

Steps to reproduce

Add a fixed button in the footer.
Create a webform popup which gets triggered on clicking the button.
Close the form without submitting it.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: outdated

Version

6.2

Component

Code

Created by

🇮🇳India Anupama.Joshi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anupama.Joshi
  • Status changed to Closed: outdated 11 months ago
  • 🇺🇸United States jrockowitz Brooklyn, NY

    This sounds like the default behavior where the focus returns to the link that opened the dialog. You'll need to change the JS.

Production build 0.71.5 2024