Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.4.0
-
None
-
Severity 3 - Minor
-
Description
Issue Summary
Diff view on the branch compare becomes blank if keyboard shortcut is disabled.
Steps to Reproduce
- Commit and push two files in certain branch in a Bitbucket repository
- Create another branch and update two files
- Commit and push the branch above
- Uncheck "Enable keyboard shortcuts" in the account setting
- See diff view in the "Compare" choosing the branches created in the steps above
- Click the 1st file in diff view
- Click the 2nd file in diff view
Expected Results
Diff shows without problem.
Actual Results
Diff doesn't show properly.
The below exception is thrown in the browser console:
Uncaught TypeError: Cannot read property 'destroy' of undefined at e.value (widget.js?_statichash=0a965bc8caa01f2afdff442d9a088122-CDN%2F771317099%2F204e35a%2F1%2F7ffaa23f612df69467f160b585b19419&locale=en-US:4) at e [as _addDestroyable] (lodash.js?_statichash=0a965bc8caa01f2afdff442d9a088122-CDN%2F771317099%2F204e35a%2F1%2F7ffaa23f612df69467f160b585b19419&locale=en-US:46) at e.init (diff-view.js?_statichash=64eba085457c058ceef73b85cef131a0-CDN%2F771317099%2F204e35a%2F1%2F19a506161cb07489d10a567148769c30&locale=en-US:13) at e.init (unified-diff-view.js?_statichash=64eba085457c058ceef73b85cef131a0-CDN%2F771317099%2F204e35a%2F1%2F19a506161cb07489d10a567148769c30&locale=en-US:7) at e [as init] (lodash.js?_statichash=0a965bc8caa01f2afdff442d9a088122-CDN%2F771317099%2F204e35a%2F1%2F7ffaa23f612df69467f160b585b19419&locale=en-US:46) at lodash.js?_statichash=0a965bc8caa01f2afdff442d9a088122-CDN%2F771317099%2F204e35a%2F1%2F7ffaa23f612df69467f160b585b19419&locale=en-US:26
Workaround
Keep "Enable keyboard shortcuts" checked.