Fix account settings tab navigation

This fixes some failing tests when upgrading to jQuery 3.5.

refs FOO-4260
flag=none

Test Plan:
- Jenkins Passes

[skip-crystalball]

Change-Id: I40f34b20795786058c8932b129feb72ec49e81a4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/341898
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Angela Gomba <angela.gomba@instructure.com>
Product-Review: Angela Gomba <angela.gomba@instructure.com>
This commit is contained in:
Angela Gomba 2024-03-05 19:19:40 -05:00
parent 434657097c
commit 88d58544c5
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ $(document).ready(function () {
const tabId =
event.type === 'tabscreate'
? window.location.hash.replace('#', '') + '-link'
: ui.newTab.context.id
: $(ui.newTab.get(0)).children('a').get(0).id
if (tabId === 'tab-reports-link' && !reportsTabHasLoaded) {
reportsTabHasLoaded = true