Skip to content

[Testing with dev env] Remove guard for scrollToRevealElement argument#5937

Draft
tombye wants to merge 1 commit into
mainfrom
remove-sticky-js-guard
Draft

[Testing with dev env] Remove guard for scrollToRevealElement argument#5937
tombye wants to merge 1 commit into
mainfrom
remove-sticky-js-guard

Conversation

@tombye
Copy link
Copy Markdown
Contributor

@tombye tombye commented May 21, 2026

We removed all the uses of jQuery in this pull
request:

#5924

But the scrollToRevealElement method is used by
some JS script in the functional tests, and still
sent the argument in (a DOM node) wrapped in a
jQuery object. We added a guard when we changed
the code, to deal with this use, but the code
doing that was changed in this pull request:

alphagov/notifications-functional-tests#657

...so we no longer need the guard.

We removed all the uses of jQuery in this pull
request:

#5924

But the scrollToRevealElement method is used by
some JS script in the functional tests, and still
sent the argument in (a DOM node) wrapped in a
jQuery object. We added a guard when we changed
the code, to deal with this use, but the code
doing that was changed in this pull request:

alphagov/notifications-functional-tests#657

...so we no longer need the guard.
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.

1 participant