Save Button doesn’t appear when only using arrows to change stock quantities
-
WP Version: 5.8
WooCommerce Version: 5.6.0
Stock Manager Version: 2.7.0
Theme: Twenty Twenty-One v1.4I previously mentined the problem in this thread where @storeapps asked me to open an own thread.
I tested on a clean install of WP with WooCommerce and Stock Manager, no other plugins, default theme. I only added one Product and activated stock management for it.
The problem I have, is that when editing stock quantities in Firefox, the “Save all Changes” button only appears after I give one of the changed fields focus by clicking into it and then removing focus from it by clickcing somewhere else.
When using Chrome the problem is slightly different although still similar. I don’t have to click into the field to give it focus, but I still need to click somewhere else after using the arrow buttons. Otherwise the “Save all changes” button doesn’t appear. Obviously this only happens if only changing one value.
I wasn’t able to dig deep into the plugin’s javascript code, but from what I was able to tell, the plugin is using the
onblur
event to detect changes in the input fields. But when only using the arrow buttons, this event is not fired. Instead the checks should be attached to theonchange
event.BTW: The same happens if I use the keyboard to change just one value. The change only gets registered when changing focus of the field by either pressing the tab key or clicking somewhere else.
- The topic ‘Save Button doesn’t appear when only using arrows to change stock quantities’ is closed to new replies.