[wp-trac] [WordPress Trac] #34436: Issue with wp.customizer.panel('name').focus().
WordPress Trac
noreply at wordpress.org
Tue Jun 1 01:48:21 UTC 2021
#34436: Issue with wp.customizer.panel('name').focus().
--------------------------------------+-----------------------------
Reporter: wpweaver | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.3.1
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: javascript
--------------------------------------+-----------------------------
Comment (by costdev):
I've just submitted a patch for this bug.
Apologies for the second commit - I had mistakenly added the code block to
the bottom of the `focus` function in an effort to keep things tidy,
without noticing that `focusElement.focus()` was already called by this
point, rendering the code block useless. I've moved it to the top of the
`focus` function so as not to disrupt the smooth sequence of declaration
and usage of `focusContainer` and `focusElement`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34436#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list