[wp-trac] [WordPress Trac] #36854: Fix for comment reply button focus on button elements in js

WordPress Trac noreply at wordpress.org
Mon May 16 16:19:27 UTC 2016


#36854: Fix for comment reply button focus on button elements in js
-------------------------+-----------------------------
 Reporter:  MarcDK       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Comments     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  javascript   |
-------------------------+-----------------------------
 Some users use themes or plugins which put button form elements before the
 textarea element in the comment form. The comment-reply.js assumes that
 there are no button elements. I added a check if the element type is
 "button". In that case the selection is skipped which results in the
 correct behaviour: the focus is set on the textarea element. Not on
 buttons like "bold", "italic" and so on.

 I included a minified version of the comment-reply.js file. I did not know
 if this was necessary.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36854>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list