[wp-trac] [WordPress Trac] #39134: Customize: custom CSS textarea is scrolled to top when pressing tab

WordPress Trac noreply at wordpress.org
Wed Dec 7 08:51:38 UTC 2016


#39134: Customize: custom CSS textarea is scrolled to top when pressing tab
------------------------------+-------------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.7.1
Component:  Customize         |     Version:  4.7
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  javascript
------------------------------+-------------------------
Changes (by tyxla):

 * keywords:  needs-patch => has-patch
 * focuses:   => javascript


Comment:

 It appears that on `tab` keydown the `scrolltop` of the textarea was being
 altered. I'm not seeing any need for this to be done - in any case, after
 inserting the tab in the textarea content (with or without enough content
 to allow scrolling), the browser will not move the scrolled position.

 I've attached a diff to remove the alterations that we're doing on the
 textarea's `scrolltop`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39134#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list