Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove the incorrect option from for scrollIntoView() #153

Closed
wants to merge 1 commit into from

Conversation

ublefo
Copy link
Collaborator

@ublefo ublefo commented Mar 24, 2024

Description

There are a lot of errors in the javascript console when clicking on the tasks in the task list:

Element.scrollIntoView: 'top' (value of 'block' member of ScrollIntoViewOptions) is not a valid value for enumeration ScrollLogicalPosition.

top is not a valid option for scrollIntoView(), start is the default so there is no need to define it explicitly.

https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

The aforementioned errors are no longer present in the javascript console when switching tasks.

Testing Checklist:

  • Tested in latest Chrome
  • Tested in latest Safari
  • Tested in latest Firefox

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

"top" is not a valid option, "start" is the default so there is no need
to define it explicitly
@satikaj
Copy link
Collaborator

satikaj commented Mar 26, 2024

Code is good. Firefox is the only browser that really complains about this from the 3 and the error disappears after this fix is applied. All good to be merged @maddernd

@maddernd
Copy link

please add screenshots showing before and after of what you changed

@maddernd
Copy link

After adding screenshots please make this upstream.

@ublefo
Copy link
Collaborator Author

ublefo commented Apr 9, 2024

Closed in favor of doubtfire-lms#824

@ublefo ublefo closed this Apr 9, 2024
@ublefo ublefo deleted the quality/scrollIntoView branch May 2, 2024 16:20
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