Admin New Order: Autofocus on Search a product
This is a Backbone modal, wc-modal-add-products, defined in html-order-items.php and triggered by meta-boxes-order.js. You say you’ve marked the field autofocus. This StackOverflow answer proposed adding an onRender handler to the modal that finds autofocus and selects it: $(this.el).find(‘:input[autofocus]’).focus(); I don’t know where the best place to put this is, but if you find the WCBackboneModal … Read more