Vendor ID Select2 Problem
-
Hello,
I’m currently working on a new website and I’m using the WC Vendors Free version. So far things have gone smoothly and I’ve managed to implement the plugin well.
But I just stumbled on a rather strange behavior of the Select2 field which is responsible for managing the vendors of each product. When the Edit Product Page is loaded, but the tab isn’t focused in the browser (other tab is active in the browser) the Page jumps to the Vendor field when selected. I think i found why is that – in the
classes\admin\class-product-meta.phpfile line 124:
<script type="text/javascript">jQuery(function() { jQuery("#' . $id . '").select2().focus(); } );</script>';Why is the
focus()method used here? Without it everything works fine and I think it is rather annoying to have the page scrolled to a point without any reason. Can this be altered in any way from the theme and if not can it be removed from a future version of the theme, as I don’t think it is useful in any way.Thanks for the great plugin. Keep up the good work!
The topic ‘Vendor ID Select2 Problem’ is closed to new replies.