Opened 10 years ago
Closed 6 years ago
#32882 closed enhancement (fixed)
Customizer search Widgets events
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | javascript | Cc: |
Description
The events to trigger a search in the available Widgets in api.Widgets.AvailableWidgetsPanelView.events
should be paired with what was done for the available Menu Items search, see 32824
See https://core.trac.wordpress.org/ticket/26600#comment:59 for some background.
Attachments (2)
Change History (14)
#2
@
10 years ago
- Type changed from defect (bug) to enhancement
Actually, I'll work on this early 4.4 as this is technically an enhancement and not a bug from what I can tell.
#6
@
9 years ago
There's now a new pattern in core which uses feature detection to determine whether inputs should use the keyup
or input
event, see [34078] and [36379]. As I see it, this should become standard.
if ( 'oninput' in document.createElement( 'input' ) ) { inputEvent = 'input'; } else { inputEvent = 'keyup'; }
Any chance to see some progress here? :) cc @ocean90
#7
@
8 years ago
- Keywords has-patch added; needs-patch removed
Since the last comments here, the Customizer has dropped support for IE 8. As I understand https://core.trac.wordpress.org/ticket/26600#comment:59 and other similar discussions (e.g. #38021), IE 8 support was the only reason to continue using keyup
, so 32882.diff removes it.
#8
@
8 years ago
- Owner changed from valendesigns to afercia
- Status changed from assigned to reviewing
#9
@
8 years ago
Thanks @dlh ! @westonruter at this point maybe the keyup
event can be removed from api.Menus.AvailableMenuItemsPanelView.events
too?
#10
@
6 years ago
- Component changed from Customize to Administration
- Milestone changed from Future Release to 5.1
Right. keyup
was there only to support IE 8. 32882.2.diff refreshes the previous patch and also removes the keyup
event used in the cases mentioned above:
I'll pick this one up tomorrow.