Opened 14 years ago
Closed 14 years ago
#20879 closed defect (bug) (fixed)
Customizer: Add keyup events to sync textarea values.
| Reported by: | koopersmith | Owned by: | koopersmith |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Customize | Version: | 3.4 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
We automatically sync text inputs with their js objects using keyup, but were not syncing for textarea. We should be doing both.
Attachments (2)
Change History (8)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Since we don't have any controls in core with textareas, here's an easy way to test the patch.
yoursite.com/wp-admin/customize.phpvar textarea = jQuery('<textarea>').appendTo('#customize-theme-controls'); var element = new wp.customize.Element( textarea ); element.bind( function() { console.log('element changed', arguments); });With the patch, you should see the value changing in the console as you type. Without the patch, you'll only see a change when you click out of the textarea (triggering a
changeevent).