Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#54449 new defect (bug)

Loading CodeMirror prevents the Help tabs children to work properly.

Reported by: krasenslavov's profile krasenslavov Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.8.2
Component: Help/About Keywords: needs-patch
Focuses: javascript Cc:

Description

When you load the wp-theme-plugin-editor script (CodeMirror) it prevents/blocks the Help on click event. You can quickly test this if you additional tab on the Theme Editor screen, right now there is only an Overview, but if we add and 2nd one you won't be able to switch between children.

I am using this on another page, but I have tested it, and when I remove the wp_enqueue_script('wp-theme-plugin-editor'); the functionality works as it should be.

This is the JS file that's causing the issue: /wp-admin/js/theme-plugin-editor.js

I have looked at it quickly but couldn't pinpoint the section of code that's causing the issue.

Krasen

Attachments (1)

Screenshot 2021-11-15 184306.png (72.3 KB) - added by krasenslavov 3 years ago.

Download all attachments as: .zip

Change History (2)

#1 @sabernhardt
2 years ago

  • Focuses javascript added
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Hi and thanks for the report!

This still occurs in WordPress 6.0.1.

Note: See TracTickets for help on using tickets.